-
You must have gpg set up and your key registered, as described at http://www.sonatype.com/people/2010/01/how-to-generate-pgp-signatures-with-maven/
-
You must provide a property
gpg.passphrase
in yoursettings.xml
in therelease
profile e.g.<profile> <id>release</id> <properties> <gpg.passphrase>myPassPhrase</gpg.passphrase> </properties> </profile>
-
You must have a JBoss Nexus account, configured with the server id in
settings.xml
with the idjboss-releases-repository
e.g.<server> <id>jboss-releases-repository</id> <username>myUserName</username> <password>myPassword</password> </server>
-
Add
org.sonatype.plugins
plugin group to yoursettings.xml
so nexus plugin can be available for publishing scripts.<pluginGroups> <pluginGroup>org.sonatype.plugins</pluginGroup> </pluginGroups>
To release, first verify that you have set the environment variable RELEASE_REPO_URL:
export RELEASE_REPO_URL=file:///home/me/repos/checkout-of-jboss-developer-temp-maven-repo
Then, simply run:
./release.sh -s <old snapshot version> -r <release version>
This will update the version number, commit and tag and publish the BOMs to the JBoss Maven repository, and prompt to close and promote the Maven Nexus staging repository. Then it will reset the version number back to the snapshot version number. The artifacts will be replicated to Maven central within 24 hours.