Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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

  • release:branch: This goal creates a branch of the current project with all versions updated

  • release:update-versions: This goal updates versions in the POM(s)

The preparation stage will complete the following tasks with the release:prepare goal...