SSouhaieb
SSouhaieb

Reputation: 238

Maven: Command line to download the dependencies described in the pom.xml

I would like to know the maven command line to download the dependencies described in the pom.xml. It is that : mvn dependency:copy-dependencies ?

Upvotes: 2

Views: 2048

Answers (1)

Paul Samsotha
Paul Samsotha

Reputation: 208994

Try the dependency:go-offline goal. It's meant to be used to resolve dependencies to the local repo before using the -o switch to go to offline mode. But the goal itself has no bearing on going offline. The name may be misleading.

Goal that resolves all project dependencies, including plugins and reports and their dependencies.

Here's the details about the dependency:copy-dependencies in case you're interested


Anther option is the dependency:resolve goal

Goal that resolves the project dependencies from the repository.

Upvotes: 3

Related Questions