Versions Maven Plugin
The Versions Plugin is used when you want to manage the versions of artifacts in a project's POM
pom.xml, right click
Run As -> Maven build...
Goals:versions:display-plugin-updates
versions:display-plugin-updates
Displays all plugins that have newer versions available.
[INFO] Require Maven 2.0.1 to use the following plugin updates:
[INFO] maven-war-plugin .............................................. 2.0.2
[INFO]
[INFO] Require Maven 2.0.2 to use the following plugin updates:
[INFO] maven-site-plugin ........................................ 2.0-beta-7
[INFO]
[INFO] Require Maven 2.0.6 to use the following plugin updates:
[INFO] maven-clean-plugin .............................................. 2.5
[INFO] maven-deploy-plugin ........................................... 2.8.1
[INFO] maven-install-plugin .......................................... 2.5.1
[INFO] maven-resources-plugin .......................................... 2.6
[INFO] maven-site-plugin ............................................. 2.0.1
[INFO] maven-surefire-plugin ......................................... 2.4.3
[INFO] maven-war-plugin ................................................ 2.4
[INFO]
[INFO] Require Maven 2.0.9 to use the following plugin updates:
[INFO] maven-compiler-plugin ........................................... 3.1
[INFO] maven-surefire-plugin .......................................... 2.17
[INFO]
[INFO] Require Maven 2.1.0 to use the following plugin updates:
[INFO] maven-site-plugin ............................................. 2.1.1
[INFO]
[INFO] Require Maven 2.2.0 to use the following plugin updates:
[INFO] maven-site-plugin ............................................... 3.0
[INFO]
[INFO] Require Maven 2.2.1 to use the following plugin updates:
[INFO] maven-clean-plugin ............................................ 2.6.1
[INFO] maven-compiler-plugin ........................................... 3.3
[INFO] maven-deploy-plugin ........................................... 2.8.2
[INFO] maven-install-plugin .......................................... 2.5.2
[INFO] maven-resources-plugin .......................................... 2.7
[INFO] maven-site-plugin ............................................... 3.4
[INFO] maven-surefire-plugin ........................................ 2.18.1
[INFO] maven-war-plugin ................................................ 2.6
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:11 min
[INFO] Finished at: 2015-04-10T21:01:09+02:00
[INFO] Final Memory: 9M/21M
[INFO] ------------------------------------------------------------------------
versions:display-dependency-updates
scans a project's dependencies and produces a report of those dependencies which have newer versions available.
versions:use-latest-releases
searches the pom for all non-SNAPSHOT versions which have been a newer release and replaces them with the latest release version.
pom.xml, right click
Run As -> Maven build
choose run options
http://mojo.codehaus.org/versions-maven-plugin/index.html
No comments:
Post a Comment