Fork me on GitHub

Checking for new property-linked updates

The display-property-updates goal will check all the properties in your project and display a list of those properties which are used to control versions of dependencies, plugins and plugin dependencies and it will detail which properties have newer versions available.

Here are some examples of what this looks like:

svn checkout http://svn.codehaus.org/mojo/trunk/mojo/build-helper-maven-plugin build-helper-maven-plugin
cd build-helper-maven-plugin
mvn versions:display-property-updates

Which produces the following output:

[INFO] ------------------------------------------------------------------------
[INFO] Building Build Helper Maven Plugin
[INFO]    task-segment: [versions:display-property-updates]
[INFO] ------------------------------------------------------------------------
[INFO] [versions:display-property-updates]
[INFO]
[INFO] This project does not have any properties associated with versions.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Aug 12 13:28:04 BST 2009
[INFO] Final Memory: 11M/22M
[INFO] ------------------------------------------------------------------------

Another example, using a project which uses properties to control the version of multiple artifacts:

svn checkout http://svn.codehaus.org/mojo/trunk/mojo/versions-maven-plugin versions-maven-plugin
cd versions-maven-plugin
mvn versions:display-property-updates

Which produces the following output:

[INFO] ------------------------------------------------------------------------
[INFO] Building Versions Maven Plugin
[INFO]    task-segment: [versions:display-property-updates]
[INFO] ------------------------------------------------------------------------
[INFO] [versions:display-property-updates]
[INFO]
[INFO] The following version property updates are available:
[INFO]   ${doxiaVersion} ........................................ 1.0 -> 1.1.1
[INFO]   ${doxia-sitetoolsVersion} .............................. 1.0 -> 1.1.1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Aug 12 13:28:49 BST 2009
[INFO] Final Memory: 11M/24M
[INFO] ------------------------------------------------------------------------