问题
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 ?
回答1:
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.
来源:https://stackoverflow.com/questions/25084550/maven-command-line-to-download-the-dependencies-described-in-the-pom-xml