Downloading all maven dependencies to a directory

Use case:
Tired of having unwanted jars? Tired of finding dependent jars? Maven shall help to download all the dependencies of the project into a folder.

If you already have a pom.xml execute command “mvn dependency:copy-dependencies” and you will find target/dependencies folder filled with all the dependencies.

Else you can create simple pom.xml

Leave a comment

Your email address will not be published. Required fields are marked *