source: branches/1.1.x/maven-release.txt @ 14340

Last change on this file since 14340 was 14311, checked in by Mark Evenson, 8 years ago

1.1.0: Final annotation changes for abcl-1.1.0.

Semi-groveled from previous commit.

File size: 3.0 KB
Line 
1# Releasing ABCL on Sonatype's OSS Maven repository - instructions
2#
3# WARNING: <file:pom.xml> and <file:contrib/pom.xml> are not currently valid descriptions of how to build ABCL.
4#
5# TODO  Use the Maven Ant plugin to drive the standard build process.
6#
7# This assumes your settings.xml (/etc/maven2/settings.xml for Ubuntu-packaged Maven) contains something like this in its <servers></servers> section:
8#
9# <server>
10#   <id>sonatype-nexus-snapshots</id>
11#   <username>sonatype-jira-username</username>
12#   <password>sonatype-jira-password</password>
13# </server>
14# <server>
15#   <id>sonatype-nexus-staging</id>
16#   <username>sonatype-jira-username</username>
17#   <password>sonatype-jira-password</password>
18# </server>
19
20# First, remember to build it!
21ant abcl.jar abcl.source.jar abcl.javadoc.jar abcl.contrib
22
23# And maybe test it as well
24ant abcl.test
25
26# For snapshots - development versions - the version in the POM should be like x.y.z-SNAPSHOT
27mvn gpg:sign-and-deploy-file -Dfile=dist/abcl.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots
28mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-${abcl.version}-sources.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots -Dclassifier=sources
29mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-${abcl.version}-javadoc.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots -Dclassifier=javadoc
30mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-contrib-${abcl.version}-jar -DpomFile=contrib/pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots
31
32# For releases - the version in the POM should be x.y.z
33mvn gpg:sign-and-deploy-file -Dfile=dist/abcl.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging
34mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-${abcl.version}-sources.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=sources
35mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-${abcl.version}-javadoc.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=javadoc
36
37# Contrib releases
38mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-contrib.jar -DpomFile=contrib/pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging
39mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-contrib-sources.jar -DpomFile=contrib/pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=sources
40mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-contrib-javadoc.jar -DpomFile=contrib/pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dclassifier=javadoc
41
42
Note: See TracBrowser for help on using the repository browser.