Rollback a Release

To rollback a release, the following requirement must be met:

  • You haven't run release:clean on the project. This means that the backup files and the release descriptor from the previous release command still exist.

When a release is rolled back, the following release phases are executed by default:

  • All project POMs are reverted back to their pre-release state locally, and also in the SCM if the previous release command was able to successfully make changes in the SCM to the POMs. This is done by using the backup files created during release:prepare.
  • The created branch/tag in SCM for the release is removed. Note: This is available from version 3.0.0-M1 . Before this version you will need to manually remove the branch/tag from your SCM. For more info see MRELEASE-229.

To rollback a release execute this command:

mvn release:rollback

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.