Java – Maven update dependencies in POM

commandjavamaven-2plugins

Are there any preexisting Maven plugins or commands to update the dependencies in the POM?
Example: (if this was in my POM)

<dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.3</version>
</dependency> 

Is there a command or plugin I can run to get it to update the dependency to:

<dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.4</version>
</dependency> 

Best Answer

Try the maven-versions-plugin, in particular, the versions:use-latest-versions goal.