Started by user admin
Building in workspace /usr/local/JenkinsHome/workspace/bhz-com
Updating http://192.168.237.134/svn/bhz/bhz-com at revision '2020-05-11T06:49:18.981 -0700'
At revision 9
no change for http://192.168.237.134/svn/bhz/bhz-com since the previous build
Parsing POMs
[bhz-com] $ /usr/local/jdk7/bin/java -cp /usr/local/JenkinsHome/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.5.jar:/usr/local/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/local/apache-maven-3.0.4 /usr/local/jenkins-tomcat/webapps/jenkins/WEB-INF/lib/remoting-2.56.jar /usr/local/JenkinsHome/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.5.jar /usr/local/JenkinsHome/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.5.jar 39422
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /usr/local/JenkinsHome/workspace/bhz-com/pom.xml -Dmaven.repo.local=/usr/local/JenkinsHome/maven-repositories/1 clean package -Dmaven.test.skip=true
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for bhz:bhz-com:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.curator:curator-framework:jar -> version 2.4.2 vs ${curator.version} @ bhz:bhz-parent:0.0.1-SNAPSHOT, /usr/local/JenkinsHome/workspace/bhz-parent/pom.xml, line 341, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ bhz:bhz-parent:0.0.1-SNAPSHOT, /usr/local/JenkinsHome/workspace/bhz-parent/pom.xml, line 484, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bhz-com 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/maven-metadata.xml
[WARNING] Could not transfer metadata commons-logging:commons-logging/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/maven-metadata.xml. Return code is: 501, ReasonPhrase:HTTPS Required.
Downloading: http://repo.maven.apache.org/maven2/avalon-framework/avalon-framework-api/maven-metadata.xml
[WARNING] Could not transfer metadata avalon-framework:avalon-framework-api/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/avalon-framework/avalon-framework-api/maven-metadata.xml. Return code is: 501, ReasonPhrase:HTTPS Required.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.647s
[INFO] Finished at: Mon May 11 06:49:28 PDT 2020
[INFO] Final Memory: 13M/31M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project bhz-com: Could not resolve dependencies for project bhz:bhz-com:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.11 (test), org.springframework:spring-test:jar:4.1.5.RELEASE (test), org.springframework:spring-core:jar:4.1.5.RELEASE (compile), org.springframework:spring-webmvc:jar:4.1.5.RELEASE (compile), org.springframework:spring-jdbc:jar:4.1.5.RELEASE (compile), org.springframework:spring-orm:jar:4.1.5.RELEASE (compile), org.springframework:spring-aop:jar:4.1.5.RELEASE (compile), org.springframework:spring-aspects:jar:4.1.5.RELEASE (compile), com.cloudhopper.proxool:proxool:jar:0.9.1 (compile), commons-fileupload:commons-fileupload:jar:1.2.2 (compile), org.apache.commons:commons-lang3:jar:3.3.1 (compile), commons-io:commons-io:jar:2.4 (compile), commons-dbcp:commons-dbcp:jar:1.4 (compile), commons-logging:commons-logging:jar:1.1.3 (compile), commons-codec:commons-codec:jar:1.6 (compile), org.codehaus.jackson:jackson-mapper-asl:jar:1.9.11 (compile), com.alibaba:fastjson:jar:1.1.26 (compile), org.slf4j:slf4j-api:jar:1.7.6 (compile), org.slf4j:jul-to-slf4j:jar:1.7.6 (compile), org.slf4j:jcl-over-slf4j:jar:1.7.6 (compile), log4j:log4j:jar:1.2.15 (compile), com.ojdbc7:ojdbc7:jar:1.0 (compile), javax.servlet:jstl:jar:1.2 (compile), javax.servlet:servlet-api:jar:3.0-alpha-1 (provided), com.alibaba.rocketmq:rocketmq-client:jar:3.2.6 (compile), org.apache.httpcomponents:httpclient-cache:jar:4.3.1 (compile), org.apache.httpcomponents:httpclient:jar:4.3.1 (compile), org.apache.httpcomponents:httpcore:jar:4.3.1 (compile), org.apache.zookeeper:zookeeper:jar:3.4.5 (compile), com.101tec:zkclient:jar:0.7 (compile), org.apache.curator:curator-framework:jar:2.5.0 (compile), org.apache.curator:curator-recipes:jar:2.4.2 (compile), redis.clients:jedis:jar:2.7.2 (compile), com.alibaba:dubbo:jar:2.8.4 (compile), org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.11 (compile), org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.11 (compile), org.javassist:javassist:jar:3.15.0-GA (compile), org.apache.mina:mina-core:jar:1.1.7 (compile), org.glassfish.grizzly:grizzly-core:jar:2.1.4 (compile), com.thoughtworks.xstream:xstream:jar:1.4.1 (compile), org.apache.bsf:bsf-api:jar:3.1 (compile), com.googlecode.xmemcached:xmemcached:jar:1.3.6 (compile), org.apache.cxf:cxf-rt-frontend-simple:jar:2.6.1 (compile), org.apache.cxf:cxf-rt-transports-http:jar:2.6.1 (compile), org.apache.thrift:libthrift:jar:0.8.0 (compile), com.caucho:hessian:jar:4.0.7 (compile), org.mortbay.jetty:jetty:jar:6.1.26 (compile), javax.validation:validation-api:jar:1.0.0.GA (compile), org.hibernate:hibernate-validator:jar:4.2.0.Final (compile), javax.cache:cache-api:jar:0.4 (compile), javax.ws.rs:javax.ws.rs-api:jar:2.0 (compile), org.jboss.resteasy:resteasy-jaxrs:jar:3.0.7.Final (compile), org.jboss.resteasy:resteasy-client:jar:3.0.7.Final (compile), org.jboss.resteasy:resteasy-netty:jar:3.0.7.Final (compile), org.jboss.resteasy:resteasy-jdk-http:jar:3.0.7.Final (compile), org.jboss.resteasy:resteasy-jackson-provider:jar:3.0.7.Final (compile), org.jboss.resteasy:resteasy-jaxb-provider:jar:3.0.7.Final (compile), com.esotericsoftware.kryo:kryo:jar:2.24.0 (compile), de.javakaffee:kryo-serializers:jar:0.26 (compile), de.ruedigermoeller:fst:jar:1.55 (compile), org.jasig.cas.client:cas-client-core:jar:3.1.12 (compile)]: No versions available for commons-logging:commons-logging:jar:[1.1,) within specified range -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[JENKINS] Archiving /usr/local/JenkinsHome/workspace/bhz-com/pom.xml to bhz/bhz-com/0.0.1-SNAPSHOT/bhz-com-0.0.1-SNAPSHOT.pom
channel stopped
Finished: FAILURE
uj5u.com熱心網友回復:
[WARNING] Some problems were encountered while building the effective model for bhz:bhz-com:jar:0.0.1-SNAPSHOT[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.curator:curator-framework:jar -> version 2.4.2 vs ${curator.version} @ bhz:bhz-parent:0.0.1-SNAPSHOT, /usr/local/JenkinsHome/workspace/bhz-parent/pom.xml, line 341, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ bhz:bhz-parent:0.0.1-SNAPSHOT, /usr/local/JenkinsHome/workspace/bhz-parent/pom.xml, line 484, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
看起來是你的 兩個專案里都引了這個依賴org.apache.curator:curator-framework:jar, 并且版本不一致, 我估計你的父工程里是沒給${curator.version}配置值, 好像你的version都沒有配置值, 在父工程里配置一下
uj5u.com熱心網友回復:
應該依賴的包,沒有在你jekins設定的maven的私庫下uj5u.com熱心網友回復:
新建一個構建父工程的專案,執行mvn install,把父工程安裝到本地倉庫,再執行自工程構建任務轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/67896.html
標籤:Web 開發
上一篇:maven build后報的錯,為什么會有亂碼呢,也不明白到底哪里出問題了,求大神幫忙!
下一篇:Ngixn1.16 + fastdfs-nginx-module-1.20 編譯make的報錯/java/fastdfs-nginx-module-1.20/
