不可解析的导入POM无法在nexus中找到工件

时间:2018-02-10 19:04:25

标签: maven jenkins openshift jenkins-pipeline nexus

这是我在通过从Gogs拉出maven项目进行Jenkins构建时遇到的错误。我也在使用Nexus存储库。 Jenkins,Nexus和其他人都在使用Docker容器。

[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:2.0.0 in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom.eap:jboss-javaee-6.0-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/eap/jboss-javaee-6.0-with-tools/6.4.0.GA/jboss-javaee-6.0-with-tools-6.4.0.GA.pom, line 55, column 25

[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.1.0.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom.eap:jboss-javaee-6.0-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/eap/jboss-javaee-6.0-with-tools/6.4.0.GA/jboss-javaee-6.0-with-tools-6.4.0.GA.pom, line 64, column 25

[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian.extension:arquillian-drone-bom:pom:1.1.1.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom.eap:jboss-javaee-6.0-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/eap/jboss-javaee-6.0-with-tools/6.4.0.GA/jboss-javaee-6.0-with-tools-6.4.0.GA.pom, line 74, column 25

[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 87, column 21
[ERROR] 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar is missing. @ line 94, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar is missing. @ line 101, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar is missing. @ line 114, column 21
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 121, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 127, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar is missing. @ line 133, column 21

我正在处理Openshift CD Demo,它使用此Openshift Tasks repo code进行构建。

以下是错误图片

enter image description here

1 个答案:

答案 0 :(得分:1)

错误消息显示

Could not find artifact org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:2.0.0 in nexus (http://nexus:8081/repository/maven-all-public/)

这意味着所述工件可能不存在于所述Nexus存储库中。