Maven update dependencies in POM

javamonkey79 picture javamonkey79 · Jun 10, 2009 · Viewed 65.1k times · Source

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> 

Answer

Dominic Mitchell picture Dominic Mitchell · Jun 10, 2009

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