Prepare a release

Preparing a release executes the following steps:

  • Check that there are no uncommitted changes in the sources
  • Check that there are no SNAPSHOT dependencies
  • Change the version in the poms from x-SNAPSHOT to a new version (you will be prompted for the versions to use)
  • Transform the SCM information in the POM to include the final destination of the tag
  • Run the project tests against the modified POMs to confirm everything is in working order
  • Commit the modified POMs
  • Tag the code in the SCM with a version name (this will be prompted for)
  • Bump the version in the POMs to a new value y-SNAPSHOT (these values will also be prompted for)
  • Commit the modified POMs

To execute this step, run:

mvn release:prepare

Note: If an error occurs, or the process is cancelled, then running this command again will pick up from where the last one left off.

If you wish to start again, use:

mvn release:prepare -Dresume=false

Alternatively, you can use:

mvn release:clean release:prepare

Note: If any changes have been made to your source files they might need to be reverted before you restart the prepare process. You can use release:rollback to make the plugin do it for you.