See http://central.sonatype.org/pages/ossrh-guide.html
Sonatype-Nexus specific maven configuration: ~/.m2/settings.xml
<settings>
<servers>
<server>
<id>ossrh</id>
<username>jira-id</username>
<password>jira-pwd</password>
</server>
</servers>
</settings>
- Build project and change version
mvn clean install versions:set -DnewVersion=<VERSION>
- If the build is ok
mvn deploy -Dgpg.passphrase="GPG_PASSPHRASE" -Prelease -DskipTests=true
- Create git a maintenance branch
git checkout master
git pull && git fetch
git checkout -b v<RELEASE_VERSION>
git push origin v<RELEASE_VERSION>
- Generate reports
mvn jacoco:prepare-agent clean site jacoco:report