- Change version in POM
git commit -am "Set version X.Y.Z-Q." && git push origin
to create actual release commit (replace X.Y.Z-Q by actual version)mvn scm:tag
to tag release commit and thus create a GitHub release (usually only for versions without qualifier)
Deployment is automatically handled by Travis (see .travis.yml for details).
Deployment is manual (because of package signing).
mvn deploy -Ppousse-cafe-release
where pousse-cafe-release
profile enables the generation of source and
javadoc packages as well as the signing of all artifacts. Note that settings.xml
file needs to contain related
profile section to configure GPG. For instance:
<profile>
<id>pousse-cafe-release</id>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.keyname>deployer_email_address</gpg.keyname>
</properties>
</profile>
After that:
- Go to SonaType Nexus Repository Manager
- In the Staging Repositories screen, locate the uploaded artifacts
- Close the staging repository and, finally, release
Run the following command:
mvn versions:display-dependency-updates