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

风流意气都作罢 提交于 2020-01-24 16:16:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!