From time to time it is good to see what are the latest versions of the libraries you use (because maybe you would like to upgrade). You can use the Versions Maven Plugin like this:


mvn versions:display-dependency-updates versions:display-plugin-updates

but the output is too verbose. And for multi-module project you will get flooded with same information about each module (cause if you use not-the-latest version of e.g. JUnit, then it will be reported for each sub-module).

In order to make your life easier you better create a bash alias (~/.bash_aliases) like this:


alias mver="mvn versions:display-dependency-updates
 versions:display-plugin-updates | grep 'INFO' | grep '>' | sort |
 uniq"

and then after you run it, you will see something similar to the following output:


[INFO] cglib:cglib ............................................... 2.2 -> 3.1
[INFO] com.googlecode.flyway:flyway-core ..................... 2.0.3 -> 2.3.1
[INFO] com.google.guava:guava ................................ 16.0.1 -> 18.0
[INFO] javax.mail:mail ................................... 1.4.7 -> 1.5.0-b01
[INFO] org.aspectj:aspectjweaver ............................. 1.7.3 -> 1.8.2
[INFO] org.springframework:spring-webmvc ..... 4.0.6.RELEASE -> 4.1.0.RELEASE
[INFO] xml-apis:xml-apis .................................... 1.4.01 -> 2.0.2

There is still some room for improvement but it works good enough for me. I hope you will find it useful as well.

Cheers!