Update Maven dependencies automatically

You are looking for maven versions plugin:

versions:display-dependency-updates Displays all dependencies that have newer versions available.

This will show a list of all updated dependencies. There is a similar command to show a list of all the updated plugins.

There doesn't seem to be a command to update the dependencies to their latest versions automatically. From the docs it looks like you can use the versions:display-property-updates to update the dependency versions if they are specified as properties in the pom file.