Publish DDMSence to Maven Central

Description

(Imported from Google Code)
(Original author: catchwa)
It would be nice if DDMSence could be published to Maven Central. Sonatype offer a way for project owners to do this [1]. I could do it myself but they insist that you try and get the project owners to do it first before they will proceed [2].

The issue is that I'm using DDMSence for a few projects and it is the only library that I'm using that isn't in Maven

[1]: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

[2]: https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+The+Central+Repository

Activity

Show:
Brian Uri
January 19, 2013, 2:21 AM

Resuming work on this once DDMSence 2.1.0 is released (2.1.0 will be the first version to be released via Sonatype, because early versions have files whose releasability has been restricted since their original publication).

Hoping to have 2.1.0 out within the next two weeks.

Brian Uri
January 20, 2013, 6:11 AM

2.1.0 is now officially available through the website. Starting this task tomorrow.

Brian Uri
January 21, 2013, 5:55 AM

1) Downloaded and installed Maven 3.0.4
2) Downloaded and installed Gpg4win 2.1.0 Light
3) Generated keys and published to hkp://pool.sks-keyservers.net
4) Created pom.xml.
5) Set up settings.xml with Sonatype info at ~/.m2/settings.xml
6) Ran the "dist" Ant task in build.xml to generate Maven artifacts.
7) Ran deployment from command line:

d:
cd /projects/ddmsence
mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=./output/dist/maven/ddmsence-2.1.0.jar -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging
mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=./output/dist/maven/ddmsence-2.1.0-sources.jar -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=sources
mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=./output/dist/maven/ddmsence-2.1.0-javadoc.jar -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=javadoc

Output:

D:\projects\ddmsence>mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=./output/dist/maven/ddmsence-2.1.0.jar -Durl=https://oss.sonatype.org/servi
ce/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DDMSence 2.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-gpg-plugin:1.4:sign-and-deploy-file (default-cli) @ ddmsence —
GPG Passphrase: ******
*gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.jar
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.jar (597 KB at 68.0 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom (2 KB at 2.3 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.jar.asc
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml (299 B at 0.3 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.jar.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.jar.asc (499 B at 0.5 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc (499 B at 0.6 KB/sec)
[INFO] Metadata[project net.urizone:ddmsence].filename = ddmsence-2.1.0.pom
[INFO] Metadata[gpg signature net.urizone:ddmsence:jar:null].filename = ddmsence-2.1.0.jar.asc
[INFO] Metadata[gpg signature net.urizone:ddmsence:jar:nullom].filename = ddmsence-2.1.0.pom.asc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.324s
[INFO] Finished at: Sun Jan 20 13:42:26 EST 2013
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
D:\projects\ddmsence>mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=./output/dist/maven/ddmsence-2.1.0-sources.jar -Durl=https://oss.sonatype.o
rg/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=sources
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DDMSence 2.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-gpg-plugin:1.4:sign-and-deploy-file (default-cli) @ ddmsence —
GPG Passphrase: ******
*gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-sources.jar
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-sources.jar (303 KB at 106.2 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom (2 KB at 2.1 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml
Downloaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml (299 B at 0.8 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc
Downloaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc (499 B at 2.8 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-sources.jar.asc
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml (299 B at 0.3 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc (499 B at 0.5 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-sources.jar.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-sources.jar.asc (499 B at 0.5 KB/sec)

[INFO] Metadata[gpg signature net.urizone:ddmsence:jar:sourcesom].filename = ddmsence-2.1.0.pom.asc
[INFO] Metadata[project net.urizone:ddmsence].filename = ddmsence-2.1.0.pom
[INFO] Metadata[gpg signature net.urizone:ddmsence:jar:sources].filename = ddmsence-2.1.0-sources.jar.asc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.561s
[INFO] Finished at: Sun Jan 20 13:42:51 EST 2013
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
D:\projects\ddmsence>mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=./output/dist/maven/ddmsence-2.1.0-javadoc.jar -Durl=https://oss.sonatype.o
rg/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=javadoc
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DDMSence 2.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-gpg-plugin:1.4:sign-and-deploy-file (default-cli) @ ddmsence —
GPG Passphrase: ******
*gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-javadoc.jar
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-javadoc.jar (1282 KB at 169.2 KB/sec)

Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom (2 KB at 2.4 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml
Downloaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml (299 B at 0.7 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc
Downloaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc (499 B at 3.0 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-javadoc.jar.asc
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/maven-metadata.xml (299 B at 0.3 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0.pom.asc (499 B at 0.6 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-javadoc.jar.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/net/urizone/ddmsence/2.1.0/ddmsence-2.1.0-javadoc.jar.asc (499 B at 0.5 KB/sec)

[INFO] Metadata[gpg signature net.urizone:ddmsence:jar:javadocom].filename = ddmsence-2.1.0.pom.asc
[INFO] Metadata[project net.urizone:ddmsence].filename = ddmsence-2.1.0.pom
[INFO] Metadata[gpg signature net.urizone:ddmsence:jar:javadoc].filename = ddmsence-2.1.0-javadoc.jar.asc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.945s
[INFO] Finished at: Sun Jan 20 13:43:22 EST 2013
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
D:\projects\ddmsence>

8) Logged into Nexus UI to Close repository and Release.
9) Added info to JIRA ticket for initial release.
10) Currently awaiting action from Sonatype.

Brian Uri
January 21, 2013, 5:58 AM

Rev 793 contains the changes to build.xml and pom.xml needed to support this work.

Will close ticket once I've confirmed that the release has been pushed into Central Repository successfully.

Brian Uri
January 22, 2013, 2:44 AM

Visible in the Central Repository!
http://search.maven.org/#browse|829191053

Fixed

Assignee

Brian Uri

Reporter

Brian Uri

Labels

None

Fix versions

Priority

Medium