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! |
---|
17 | ant abcl.jar abcl.source.jar abcl.javadoc.jar abcl.contrib |
---|
18 | |
---|
19 | # And maybe test it as well |
---|
20 | ant abcl.test |
---|
21 | |
---|
22 | # For snapshots - development versions - the version in the POM should be like x.y.z-SNAPSHOT |
---|
23 | mvn gpg:sign-and-deploy-file -Dfile=dist/abcl.jar -DpomFile=pom.xml -Durl=https://oss.sonatype.org/content/repositories/snapshots/ -DrepositoryId=sonatype-nexus-snapshots |
---|
24 | mvn 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 |
---|
25 | mvn 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 |
---|
26 | mvn 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 |
---|
29 | mvn 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 |
---|
30 | mvn 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 |
---|
31 | mvn 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 | # Contrib releases |
---|
34 | mvn 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 |
---|
35 | mvn 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 |
---|
36 | mvn 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 |
---|
37 | |
---|
38 | |
---|