- No SNAPSHOT dependencies on "develop" and obviously "master" branches
- From the develop branch, prepare a release (example using a HTTP proxy):
$ mvn -Dhttps.proxyHost=proxyhostname -Dhttps.proxyPort=3128 jgitflow:release-start
- Update the CHANGELOG according to keepachangelog.com.
- To perform the release (example using a HTTP proxy):
$ mvn -Dhttps.proxyHost=proxyhostname -Dhttps.proxyPort=3128 jgitflow:release-finish
If, after deployment, the command does not succeed because of some issue with the branches. Fix the issue, then re-run the same command but with 'noDeploy' option set to true to avoid re-deployment:
$ mvn -Dhttps.proxyHost=proxyhostname -Dhttps.proxyPort=3128 -DnoDeploy=true jgitflow:release-finish
- Connect and log in to the Maven Central Repository: https://central.sonatype.com/
- Go to Deployments and select the pending Deployment
- Click the Publish button to release to Maven Central.
More info on jgitflow: http://jgitflow.bitbucket.org/