由于使用artifactory的第三方JAR依赖性而构建失败

时间:2012-08-21 09:30:19

标签: java maven maven-2 artifactory

我已经将第三方JAR(在Maven存储库中不可用)导入到我的项目中,它在开发环境中构建得很好。但是在CI环境中我们有一个中心神器(http://wiki.jfrog.org/confluence/display/RTF/Artifactory+User+Guide)。在构建时,我收到错误

Failed to read artifact descriptor for: com.abc.client:client-parent:pom:1.0-SNAPSHOT
......
......
Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact com.abc.client:client-parent:pom:1.0-SNAPSHOT

我打开了第三方JAR并检查了POM。它确实有父母。

<groupId>com.abc.client</groupId>
<artifactId>client-java</artifactId>
.....
.....
<parent>
    <groupId>com.abc.client</groupId>
    <artifactId>client-parent</artifactId>
    <version>1.0-SNAPSHOT</version>
</parent>

不确定,如果构建在一个env中正常运行,为什么它在CI中失败。 神器是否以不同方式处理工件?

0 个答案:

没有答案