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

Last change on this file since 13370 was 13370, checked in by Mark Evenson, 10 years ago

Add support for releasing the contrib with Maven artifacts.

Create a "versioned" contrib jar as part of the release.

N.B. the pom.xml and instructions are untested.

File size: 2.4 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 abcl.source.jar abcl.javadoc.jar abcl.contrib
18
19# And maybe test it as well
20ant abcl.test
21
22# For snapshots - development versions - the version in the POM should be like x.y.z-SNAPSHOT
23mvn gpg:sign-and-deploy-file -Dfile=dist/abcl.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots
24mvn 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
25mvn 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
26mvn 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
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
32mvn gpg:sign-and-deploy-file -Dfile=dist/abcl-contrib-${abcl.version}.jar -DpomFile=contrib/pom.xml -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging
33
34
35
Note: See TracBrowser for help on using the repository browser.