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 the following eight goals, which are executed in two stages, preparing the release and performing the release:

  • release:clean: This goal cleans up after a release preparation
  • release:prepare: This goal prepares for a release in Software Configuration Management (SCM)
  • release:prepare-with-pom: This goal prepares for a release in SCM and generates release POMs by fully resolving the dependencies
  • release:rollback: This goal rolls back to a previous release
  • release:perform: This goal performs a release from SCM
  • release:stage: This goal performs a release from SCM into a staging folder/repository ...

Get Mastering Apache Maven 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.