如何使用Maven依赖插件下载ZIP文件? [英] How can I download a ZIP file with the Maven dependency plugin?
本文介绍了如何使用Maven依赖插件下载ZIP文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用dependency:copy -Dartifact=...
但是,一个工件看起来像是依赖项
However, one artifact looks like this as dependency
<dependency>
<groupId>foo</groupId>
<artifactId>xml-schemas</artifactId>
<version>1.10.0-SNAPSHOT</version>
<classifier>public</classifier>
<type>zip</type>
</dependency>
如何下载此文件?正确的Maven坐标是什么?
How can I download this? What are the correct Maven coordinates?
推荐答案
确保您使用的是2.7版或更高版本的依赖插件.然后是
Make sure you are using version 2.7 or later of the dependency plugin. Then it's
-Dartifact=<groupId>:<artifactId>:<version>:<type>:<classifier>
Maven依赖项的dependency:get
部分中有一个示例插件使用文档.
There is an example in the dependency:get
section of the Maven dependency plugin usage docs.
这篇关于如何使用Maven依赖插件下载ZIP文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文