Java 由于使用artifactory的第三方JAR依赖关系,生成失败
我已经将第三方JAR(在Maven存储库中不可用)导入到我的项目中,它在开发环境中构建得很好。然而,在CI环境中,我们有一个中心工件(http://wiki.jfrog.org/confluence/display/RTF/Artifactory+用户+指南)。在构建过程中,我发现了错误Java 由于使用artifactory的第三方JAR依赖关系,生成失败,java,maven,maven-2,artifactory,Java,Maven,Maven 2,Artifactory,我已经将第三方JAR(在Maven存储库中不可用)导入到我的项目中,它在开发环境中构建得很好。然而,在CI环境中,我们有一个中心工件(http://wiki.jfrog.org/confluence/display/RTF/Artifactory+用户+指南)。在构建过程中,我发现了错误 Failed to read artifact descriptor for: com.abc.client:client-parent:pom:1.0-SNAPSHOT ...... ...... Cause
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>
com.abc.client
客户端java
.....
.....
客户机
客户家长
1.0-快照
不确定,如果构建在一个环境中进行得很好,那么为什么它在CI中失败。
工件是否以不同方式处理工件?您的工件上是否有第三方工件?您的
中是否声明了您的本地工件?快照存储库的url和路径?签出@antyes。我已经在artifactory中导入了第三方JAR,正如我在dev env中所做的那样。然而,它只在CI中失败。注意:我没有在开发或CI环境中导入父级,因为我没有。我认为它需要父级。你确定在你的开发环境中没有父工件的痕迹吗?检查~/.m2/存储库folder@Alf:否没有跟踪我检查了目录是否尝试将父pom.xml上载到repo manager?