From 9b8afe08ebefd466ef66175a6f9e90110cebf03d Mon Sep 17 00:00:00 2001 From: Henry Cai Date: Fri, 24 Jul 2015 18:58:29 -0700 Subject: [PATCH] Add support to enable deploy/publish through SonaType to maven central Added all the required change to pom to allow build publishing to maven central through SonaType.org. Most of the changes are following examples in: http://central.sonatype.org/pages/ossrh-guide.html The first version is published to maven under (including both sources and javadoc jars): https://repo1.maven.org/maven2/com/pinterest/secor/0.1 Since ver 0.1 is published, our current SNAPSHOT build will be upgraded to 0.2-SNAPSHOT To publish the snapshot build (you need to have SonaType account and GnuPGP signing tools configured): # make sure the version in pom.xml ends with SNAPSHOT mvn clean deploy # the artifacts will stay in Sonatype repo (not going into maven central) To publish a release build # make sure the version in pom.xml not ends with SNAPSHOT mvn clean deploy -P release # the artifacts are pushed all the way through to maven central # when the release build is published to maven central, make sure the version in pom.xml is upgraded to next-version-SNAPSHOT to reflect we are not building snapshot for next version until it's ready to be version released. --- pom.xml | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 101 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 963f7a091..5ce2e7b41 100644 --- a/pom.xml +++ b/pom.xml @@ -4,11 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.pinterest.secor + com.pinterest secor - 0.1-SNAPSHOT + 0.2-SNAPSHOT jar + secor Kafka to s3 logs exporter + https://github.com/pinterest/secor @@ -19,6 +21,31 @@ + + + pgarbacki + Pawel Garbacki + + + yuyang + Yu Yang + + + ramki + Ramki Venkatachalam + + + hcai + Henry Cai + + + + + https://github.com/pinterest/secor.git + https://github.com/pinterest/secor.git + https://github.com/pinterest/secor + + 1.6 1.6 @@ -26,6 +53,17 @@ UTF-8 + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + Twitter public Maven repo @@ -326,6 +364,67 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + + release + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + + +