Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Update pom for distributing via the sonatype central repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantenney committed Nov 19, 2012
1 parent bb6e54e commit decca73
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 17 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ This module does the following things:
###Maven

<dependency>
<groupId>com.yammer.metrics</groupId>
<groupId>com.ryantenney.metrics</groupId>
<artifactId>metrics-spring</artifactId>
<version>2.1.2</version>
<version>2.1.4</version>
</dependency>

This module was formerly contained in the [Yammer Metrics repository](https://github.com/codahale/metrics). Version 2.1.2 will be the last version of this module available at these coordinates. This is the new official home of this project, and new coordinates will be available soon.
This module was formerly contained in the [Yammer Metrics repository](https://github.com/codahale/metrics).

###Basic Usage

Spring Context XML:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:metrics="http://www.yammer.com/schema/metrics"
xmlns:metrics="http://www.ryantenney.com/schema/metrics"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.yammer.com/schema/metrics
http://www.yammer.com/schema/metrics/metrics.xsd">
http://www.ryantenney.com/schema/metrics
http://www.ryantenney.com/schema/metrics/metrics-2.1.xsd">

<metrics:annotation-driven />

Expand Down
59 changes: 48 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.ryantenney.metrics</groupId>
<artifactId>metrics-spring</artifactId>
<version>2.1.2-SNAPSHOT</version>
<version>2.1.4-SNAPSHOT</version>
<name>Metrics Spring Integration</name>
<packaging>bundle</packaging>
<description>Spring integration for Yammer's Metrics Library</description>
Expand All @@ -15,8 +15,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<metrics.version>2.1.2</metrics.version>
<spring.version>3.1.1.RELEASE</spring.version>
<metrics.version>2.1.4</metrics.version>
<spring.version>3.1.2.RELEASE</spring.version>
</properties>

<developers>
Expand All @@ -31,21 +31,21 @@
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<connection>scm:git:git://github.com/ryantenney/metrics-spring.git</connection>
<url>http://github.com/ryantenney/metrics-spring/</url>
<developerConnection>scm:git:[email protected]:ryantenney/metrics-spring.git</developerConnection>
<url>https://github.com/ryantenney/metrics-spring/</url>
</scm>

<issueManagement>
<system>github</system>
<url>http://github.com/ryantenney/metrics-spring/issues</url>
</issueManagement>

<!-- distributionManagement>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
Expand All @@ -56,11 +56,7 @@
<name>Nexus Release Repository</name>
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>repo.ryantenney.com</id>
<url>scp://ryantenney.com/home/ryantenney/metrics.ryantenney.com/maven/</url>
</site>
</distributionManagement-->
</distributionManagement>

<dependencies>
<dependency>
Expand Down Expand Up @@ -176,6 +172,47 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.2</version>
<configuration>
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
<!-- Make signing prompt for passphrase properly http://jira.codehaus.org/browse/MGPG-9 -->
<mavenExecutorId>forked-path</mavenExecutorId>
<stagingRepository>sonatype-nexus-staging::default::https://oss.sonatype.org/service/local/staging/deploy/maven2</stagingRepository>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit decca73

Please sign in to comment.