0

我已将第 3 方 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

我打开了第 3 方 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>

不确定,如果构建在一个环境中运行良好,为什么它在 CI 中失败。工件是否以不同的方式处理工件?

4

0 回答 0