How to update/know the latest versions of all dependencies in the pom.xml
How to display the dependencies latest versions ?
It’s that simple, just run the below command,
mvn versions:display-dependency-updates
Sample screenshot:
How to update all the dependencies of the pom.xml ?
After running the below commands it will upgrade/update all the latest version availables in the pom.xml directly. First check the versions by running the above mentioned command, then proceed with the below commands.
If you are not using git or any other source code management tools then better to take some backup of your pom.xml
mvn versions:use-latest-versions