Show Menu
Cheatography

Maven Versions Plugin Cheat Sheet by

Maven Versions

Goals

versio­ns:­upd­ate­-pr­ope­rties
updates properties defined in a project so that they correspond to the latest available version of specific depend­encies. This can be useful if a suite of depend­encies must all be locked to one version.
versio­ns:set -DnewV­ers­ion­=1.0.1­-SN­APSHOT
can be used to set the project version from the command line.
versio­ns:­use­-re­leases
The use-re­leases goal will look at your project depend­encies and see if any -SNAPSHOT versions have been released, replacing the -SNAPSHOT version with the corres­ponding release version.
versio­ns:­upd­ate­-parent
Note that, by default, -SNAPSHOT versions are ignored. You can force snapshots to be included with the allowS­nap­shots parameter:
versio­ns:­upd­ate­-ch­ild­-mo­dules
updates the parent section of the child modules of a project so the version matches the version of the current project. For example, if you have an aggregator pom that is also the parent for the projects that it aggregates and the children and parent versions get out of sync, this mojo can help fix the versions of the child modules.
versio­ns:­dis­pla­y-d­epe­nde­ncy­-up­dates
To get inform­ation about newer versions of depend­encies that you are using in your build, just invoke the displa­y-d­epe­nde­ncy­-up­dates goal.
versio­ns:­dis­pla­y-p­rop­ert­y-u­pdates
To get inform­ation about newer versions of depend­encies that you are using in your build, just invoke the displa­y-p­rop­ert­y-u­pdates goal.
versio­ns:­commit
Removes pom.xm­l.b­ackup files but does not actually commit sth. to SVN/GIT
versio­ns:­upd­ate­-parent
Sets the parent version to the latest parent version. -Dallo­wSn­aps­hot­s=true to include SNAPSHOTS
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Bash Dev Cheat Sheet
          Maven Cheat Sheet