source: trunk/abcl/maven-release.txt @ 13224

Last change on this file since 13224 was 13224, checked in by astalla, 11 years ago

Updared POM to reflect version 0.25.0-dev and added instructions for releasing with Maven.

File size: 2.0 KB
Line 
1# Releasing ABCL on Sonatype's OSS Maven repository - instructions
2#
3# This assumes your settings.xml (/etc/maven2/settings.xml for Ubuntu-packaged Maven) contains something like this in its <servers></servers> section:
4#
5# <server>
6#   <id>sonatype-nexus-snapshots</id>
7#   <username>sonatype-jira-username</username>
8#   <password>sonatype-jira-password</password>
9# </server>
10# <server>
11#   <id>sonatype-nexus-staging</id>
12#   <username>sonatype-jira-username</username>
13#   <password>sonatype-jira-password</password>
14# </server>
15
16# First, remember to build it!
17ant abcl.jar
18ant abcl.source.jar
19ant abcl.javadoc.jar
20# And maybe test it as well
21ant abcl.test
22
23# For snapshots - development versions - the version in the POM should be like x.y.z-SNAPSHOT
24mvn gpg:sign-and-deploy-file -Dfile=dist/abcl.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots
25mvn 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
26mvn 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
27
28# For releases - the version in the POM should be x.y.z
29mvn 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
30mvn 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
31mvn 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
32
33
34
Note: See TracBrowser for help on using the repository browser.