

To download dependencies, you can use the Maven Dependency Plugin. Most features in Maven – like compiling code, running tests and downloading dependencies – are implemented inside a plugin. When you want to do something in Maven, you usually need a plugin. Advertisements Steps to download all dependencies You want to debug a library, so you want a local copy

You want to run your project (and its dependencies) on another machine which doesn’t have internet access So why might you need to download dependencies? Well, you might need to do this if… Normally, you don’t need to download your dependencies explicitly! Maven automatically downloads your project’s dependencies, whenever you run a build. You can change the target location by setting the property outputDirectory. Run mvn dependency:copy-dependencies, to download all your dependencies and save them in the target/dependency folder. You can use the Maven Dependency Plugin to download dependencies.
