-
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.passphrasein yoursettings.xmlin thereleaseprofile 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.xmlwith the idjboss-releases-repositorye.g.<server> <id>jboss-releases-repository</id> <username>myUserName</username> <password>myPassword</password> </server> -
Add
org.sonatype.pluginsplugin group to yoursettings.xmlso nexus plugin can be available for publishing scripts.<pluginGroups> <pluginGroup>org.sonatype.plugins</pluginGroup> </pluginGroups>
To release, 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.