The Maven release plugin
Releasing a project requires a lot of repetitive tasks. The objective of the Maven release
plugin is to automate them. The release plugin defines following eight goals, which are executed in two stages—preparing the release and performing the release:
release:clean
: This cleans up after a release preparationrelease:prepare
: This prepares for a release in SCM (Software Configuration Management)release:prepare-with-pom
: This prepares for a release in SCM, and generates release POMs by fully resolving the dependenciesrelease:rollback
: This rolls back to a previous releaserelease:perform
: This performs a release from SCMrelease:stage
: This performs a release from SCM into a staging folder or repositoryrelease:branch
: This creates a branch of the current project with all versions updatedrelease:update-versions
: This updates the versions in the POM(s)
The preparation stage will complete the following tasks with the release:prepare
goal:
Verify that all the changes...