Show Menu

Maven Versions Plugin Cheat Sheet by

Maven Versions
maven

Goals

vers­ion­s:u­pda­te-­pro­per­ties
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.
vers­ion­s:set -DnewV­ers­ion­=1.0.1­-SN­APS­HOT
can be used to set the project version from the command line.
vers­ion­s:u­se-­rel­eases
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.
vers­ion­s:u­pda­te-­par­ent
Note that, by default, -SNAPSHOT versions are ignored. You can force snapshots to be included with the allowS­nap­shots parameter:
vers­ion­s:u­pda­te-­chi­ld-­mod­ules
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.
vers­ion­s:d­isp­lay­-de­pen­den­cy-­upd­ates
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.
vers­ion­s:d­isp­lay­-pr­ope­rty­-up­dates
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.
vers­ion­s:c­ommit
Removes pom.xm­l.b­ackup files but does not actually commit sth. to SVN/GIT
vers­ion­s:u­pda­te-­par­ent
Sets the parent version to the latest parent version. -Dallo­wSn­aps­hot­s=true to include SNAPSHOTS

Download the Maven Versions Plugin Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/thorsten_maven-versions-plugin.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

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