maven在存在时无法下载工件

时间:2016-02-01 09:29:15

标签: maven

我有项目需要从我们的内部nexus服务器下载工件,工件是在

中定义的jar文件
<dependency>
  <groupId>com.tibco.datasynapse.qa.testharness-commons.java</groupId>
  <artifactId>java${jdk.version}</artifactId>
  <version>1.0.0.18</version>
  <classifier>commons</classifier>
</dependency>

,错误是

[ERROR] Failed to execute goal on project java1.7: Could not resolve dependencies for project com.tibco.datasynapse.qa.grid-testharness.java:java1.7:jar:6.2.0.1-SNAPSHOT: 

Failed to collect dependencies for [com.tibco.datasynapse.qa.testharness-commons.java:java1.7:jar:commons:1.0.0.18 (compile), com.tibco.datasynapse.grid.sdk:java:jar:6.2.0.139604 (compile), com.tibco.datasynapse.grid.speedlink:java:jar:6.2.0.139604 (compile), com.tibco.datasynapse.qa:grid-soap:jar:6.2.0.3 (compile), log4j:log4j:jar:1.2.15 (compile), javax.mail:mail:jar:1.4.5 (compile), junit:junit:jar:4.10 (compile), oro:oro:jar:2.0.8 (compile)]: Failed to read artifact descriptor for com.tibco.datasynapse.qa.testharness-commons.java:java1.7:jar:commons:1.0.0.18: Could not find artifact com.tibco.datasynapse.qa.testharness-commons.java:java:pom:1.0.0.18 in qa-releases (http://athena.grid.datasynapse.com/nexus/content/repositories/qa-releases) -> [Help 1]

但事实是这个工件确实存在于正确的位置,即使我从这个工件的nexus gui复制了依赖关系信息它也不起作用

我试过-U arg,尝试使用新版本上传工件,尝试删除应该下载目标工件的文件夹,这些都不起作用......

我发现了一个帖子Maven: Failed to read artifact descriptor,但对我不起作用......

神器在nexus上看起来像这样 enter image description here

1 个答案:

答案 0 :(得分:0)

即使手动安装它?如果它还没有完成,请尝试