Maven:命令行下载pom.xml中描述的依赖项 [英] Maven: Command line to download the dependencies described in the pom.xml

查看:1233
本文介绍了Maven:命令行下载pom.xml中描述的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道maven命令行下载pom.xml中描述的依赖项. 就是:mvn依赖项:复制依赖项?

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 ?

推荐答案

尝试 dependency:go-offline 目标.它用于在使用-o开关进入脱机模式之前,解决对本地存储库的依赖关系.但是目标本身与离线无关.这个名字可能会误导人.

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.

以下是有关 dependency:copy-dependencies的详细信息如果您有兴趣

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

另一个选项是 dependency:resolve 目标

从存储库中解决项目依赖关系的目标.

Goal that resolves the project dependencies from the repository.

这篇关于Maven:命令行下载pom.xml中描述的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆