使用maven依赖插件从nexus下载ear文件获取目标

时间:2017-10-20 10:06:58

标签: maven nexus ear

我正在使用maven依赖插件get目标从nexus下载一个人工制品。我可以用它来下载jar,如下所示

mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -DrepoUrl=http://nexus.url/nexus/content/groups/public-all/ -Dartifact=groupId:artifactId:version:jar -Dtransitive=false -Ddestination=/my/path

要下载战争,我可以使用

mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -DrepoUrl=http://nexus.url/nexus/content/groups/public-all/ -Dartifact=groupId:artifactId:version:war -Dtransitive=false -Ddestination=/my/path

但是我没有使用以下

下载耳朵

mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -DrepoUrl=http://nexus.url/nexus/content/groups/public-all/ -Dartifact=groupId:artifactId:version:ear -Dtransitive=false -Ddestination=/my/path

上述命令的输出如下

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:get (default-cli) @ standalone-pom ---
[INFO] Resolving groupId:artifactId:ear:version
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.797 s
[INFO] Finished at: 2017-10-20T13:31:02+02:00
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------

我已确认耳朵确实存在于Nexus中。上面的命令运行成功,但实际上没有下载耳朵。 以上命令下载耳朵有什么问题?如何使用mvn命令从Nexus下载ear文件?

请注意我已将上面代码中的实际groupId,artifactId和版本替换为各自的单词。

0 个答案:

没有答案