1.

What is maven-release plugin and how does it work?

Answer»

The MAVEN release plugin is USED to automate the build and release process. When maven executes the maven-release-plugin, the following activities are performed:

  • mvn release:clean - clears the workspace from the previous build and prepares it for a new one.
  • mvn release:rollback - If the previous process failed, it ROLLBACKS the workspace.
  • mvn release:prepare - It performs the following tasks:
    • Checks the LOCAL workspace for any uncommitted files.
    • Checks for SNAPSHOT dependencies and verifies they aren't present.
    • Prepares the final version for release.
    • Updates the pom to SCM (SVN/Git/Mercurial/CVS).
    • Runs the test cases.
    • Executes the ultimate commit to the SCM.
    • Tags the script/code.
    • Increases the version number and includes the SNAPSHOT as PART of the subsequent releases.
  • mvn release:perform - fetches the code from the repository and executes the maven goal to develop and deploy the artifacts.


Discussion

No Comment Found