Using Maven to just download JARs

Your best approach is to use m2eclipse and import your pom into eclipse. It will download and link all dependencies to your project, and as an added bonus, it will also download and associate their source and javadoc jars. It does not really matter if the project has hundreds or just few dependencies, it will work the same.

Sometimes, we want to do something quickly and be done with it, but it ends up taking longer than doing the right away especially when there hundreds of dependencies.


Try

mvn install dependency:copy-dependencies

You will see all the jars under 'target/dependency' folder


You can try this command:

mvn dependency:resolve

Or just invoke the "install" life cycle as follows:

mvn install