jenkins+maven报错,求解,始终无法正常发布,

发布于 2021-11-27 19:15:34 字数 17001 浏览 813 评论 5

jenkins+maven报错,求解,始终无法正常发布,

debug日志如下:

[search path for class files: /usr/java/jdk1.8.0_91/jre/lib,/usr/java/jdk1.8.0_91/jre/lib/ext/cldrdata.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/dnsns.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/jaccess.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/nashorn.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/sunec.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/sunjce_provider.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/sunpkcs11.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/zipfs.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/localedata.jar,/usr/java/jdk1.8.0_91/jre/lib/ext/jfxrt.jar,/root/.jenkins/workspace/base-service/base-service/base-common/target/classes,/root/.jenkins/workspace/base-service/.repository/log4j/log4j/1.2.17/log4j-1.2.17.jar,/root/.jenkins/workspace/base-service/.repository/com/alibaba/druid/1.0.20/druid-1.0.20.jar,/usr/java/jdk1.8.0_91/jre/../lib/jconsole.jar,/usr/java/jdk1.8.0_91/jre/../lib/tools.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-core/4.2.3.RELEASE/spring-core-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-beans/4.2.3.RELEASE/spring-beans-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-context/4.2.3.RELEASE/spring-context-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-expression/4.2.3.RELEASE/spring-expression-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-context-support/4.2.3.RELEASE/spring-context-support-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-aop/4.2.3.RELEASE/spring-aop-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-tx/4.2.3.RELEASE/spring-tx-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/mybatis/mybatis/3.4.0/mybatis-3.4.0.jar,/root/.jenkins/workspace/base-service/.repository/org/mybatis/mybatis-spring/1.3.0/mybatis-spring-1.3.0.jar,/root/.jenkins/workspace/base-service/.repository/com/github/miemiedev/mybatis-paginator/1.2.17/mybatis-paginator-1.2.17.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/data/spring-data-redis/1.7.2.RELEASE/spring-data-redis-1.7.2.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/data/spring-data-keyvalue/1.1.2.RELEASE/spring-data-keyvalue-1.1.2.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/data/spring-data-commons/1.12.2.RELEASE/spring-data-commons-1.12.2.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/redis/clients/jedis/2.8.1/jedis-2.8.1.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-orm/4.2.3.RELEASE/spring-orm-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-jdbc/4.2.3.RELEASE/spring-jdbc-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/aspectj/aspectjrt/1.7.4/aspectjrt-1.7.4.jar,/root/.jenkins/workspace/base-service/.repository/org/aspectj/aspectjweaver/1.7.4/aspectjweaver-1.7.4.jar,/root/.jenkins/workspace/base-service/.repository/c3p0/c3p0/0.9.1/c3p0-0.9.1.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-web/4.2.3.RELEASE/spring-web-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-webmvc/4.2.3.RELEASE/spring-webmvc-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/org/springframework/spring-oxm/4.2.3.RELEASE/spring-oxm-4.2.3.RELEASE.jar,/root/.jenkins/workspace/base-service/.repository/taglibs/standard/1.1.2/standard-1.1.2.jar,/root/.jenkins/workspace/base-service/.repository/javax/servlet/jstl/1.2/jstl-1.2.jar,/root/.jenkins/workspace/base-service/.repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar,/root/.jenkins/workspace/base-service/.repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/shiro/shiro-core/1.2.5/shiro-core-1.2.5.jar,/root/.jenkins/workspace/base-service/.repository/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/shiro/shiro-web/1.2.5/shiro-web-1.2.5.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/shiro/shiro-ehcache/1.2.5/shiro-ehcache-1.2.5.jar,/root/.jenkins/workspace/base-service/.repository/net/sf/ehcache/ehcache-core/2.5.0/ehcache-core-2.5.0.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/shiro/shiro-spring/1.2.5/shiro-spring-1.2.5.jar,/root/.jenkins/workspace/base-service/.repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/shiro/shiro-quartz/1.2.5/shiro-quartz-1.2.5.jar,/root/.jenkins/workspace/base-service/.repository/org/opensymphony/quartz/quartz/1.6.1/quartz-1.6.1.jar,/root/.jenkins/workspace/base-service/.repository/com/fasterxml/jackson/core/jackson-core/2.2.1/jackson-core-2.2.1.jar,/root/.jenkins/workspace/base-service/.repository/com/fasterxml/jackson/core/jackson-databind/2.2.1/jackson-databind-2.2.1.jar,/root/.jenkins/workspace/base-service/.repository/com/fasterxml/jackson/core/jackson-annotations/2.2.1/jackson-annotations-2.2.1.jar,/root/.jenkins/workspace/base-service/.repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.2.1/jackson-module-jaxb-annotations-2.2.1.jar,/root/.jenkins/workspace/base-service/.repository/com/alibaba/fastjson/1.2.1/fastjson-1.2.1.jar,/root/.jenkins/workspace/base-service/.repository/com/thoughtworks/xstream/xstream/1.4.3/xstream-1.4.3.jar,/root/.jenkins/workspace/base-service/.repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar,/root/.jenkins/workspace/base-service/.repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar,/root/.jenkins/workspace/base-service/.repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar,/root/.jenkins/workspace/base-service/.repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar,/root/.jenkins/workspace/base-service/.repository/com/github/axet/kaptcha/0.0.9/kaptcha-0.0.9.jar,/root/.jenkins/workspace/base-service/.repository/com/jhlabs/filters/2.0.235/filters-2.0.235.jar,/root/.jenkins/workspace/base-service/.repository/javax/mail/javax.mail-api/1.4.7/javax.mail-api-1.4.7.jar,/root/.jenkins/workspace/base-service/.repository/javax/activation/activation/1.1/activation-1.1.jar,/root/.jenkins/workspace/base-service/.repository/javax/mail/mail/1.4.7/mail-1.4.7.jar,/root/.jenkins/workspace/base-service/.repository/velocity/velocity/1.4/velocity-1.4.jar,/root/.jenkins/workspace/base-service/.repository/javax/javaee-web-api/7.0/javaee-web-api-7.0.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/wink/wink-server/1.4/wink-server-1.4.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/wink/wink-common/1.4/wink-common-1.4.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/geronimo/specs/geronimo-annotation_1.1_spec/1.0/geronimo-annotation_1.1_spec-1.0.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/geronimo/specs/geronimo-jaxrs_1.1_spec/1.0/geronimo-jaxrs_1.1_spec-1.0.jar,/root/.jenkins/workspace/base-service/.repository/javax/xml/bind/jaxb-api/2.2/jaxb-api-2.2.jar,/root/.jenkins/workspace/base-service/.repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar,/root/.jenkins/workspace/base-service/.repository/com/sun/xml/bind/jaxb-impl/2.2.1.1/jaxb-impl-2.2.1.1.jar,/root/.jenkins/workspace/base-service/.repository/com/sun/xml/bind/jaxb-impl/2.2.1.1/jaxb-api.jar,/root/.jenkins/workspace/base-service/.repository/com/sun/xml/bind/jaxb-impl/2.2.1.1/activation.jar,/root/.jenkins/workspace/base-service/.repository/com/sun/xml/bind/jaxb-impl/2.2.1.1/jsr173_1.0_api.jar,/root/.jenkins/workspace/base-service/.repository/com/sun/xml/bind/jaxb-impl/2.2.1.1/jaxb1-impl.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/wink/wink-json-provider/1.4/wink-json-provider-1.4.jar,/root/.jenkins/workspace/base-service/.repository/org/json/json/20080701/json-20080701.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/wink/wink-spring-support/1.4/wink-spring-support-1.4.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar,/root/.jenkins/workspace/base-service/.repository/jline/jline/0.9.94/jline-0.9.94.jar,/root/.jenkins/workspace/base-service/.repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar,/root/.jenkins/workspace/base-service/.repository/com/github/sgroschupf/zkclient/0.1/zkclient-0.1.jar,/root/.jenkins/workspace/base-service/.repository/com/caucho/hessian/4.0.7/hessian-4.0.7.jar,/root/.jenkins/workspace/base-service/.repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar,/root/.jenkins/workspace/base-service/.repository/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar,/root/.jenkins/workspace/base-service/.repository/freemarker/freemarker/2.3.8/freemarker-2.3.8.jar,/root/.jenkins/workspace/base-service/.repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar,/root/.jenkins/workspace/base-service/.repository/com/github/pagehelper/pagehelper/4.1.6/pagehelper-4.1.6.jar,/root/.jenkins/workspace/base-service/.repository/com/github/jsqlparser/jsqlparser/0.9.5/jsqlparser-0.9.5.jar,/root/.jenkins/workspace/base-service/.repository/commons-io/commons-io/2.5/commons-io-2.5.jar,/root/.jenkins/workspace/base-service/.repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar,/root/.jenkins/workspace/base-service/.repository/org/jdom/jdom/1.1/jdom-1.1.jar,/root/.jenkins/workspace/base-service/.repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar,/root/.jenkins/workspace/base-service/.repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar,/root/.jenkins/workspace/base-service/.repository/org/codehaus/jackson/jackson-mapper-asl/1.8.8/jackson-mapper-asl-1.8.8.jar,/root/.jenkins/workspace/base-service/.repository/org/codehaus/jackson/jackson-core-asl/1.8.8/jackson-core-asl-1.8.8.jar,.]
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
[DEBUG] incrementalBuildHelper#afterRebuildExecution
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] An unknown compilation problem occurred
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] base ............................................... SUCCESS [ 41.484 s]
[INFO] base-common ........................................ FAILURE [ 21.941 s]
[INFO] base-core .......................................... SKIPPED
[INFO] base-dao ........................................... SKIPPED
[INFO] base-service ....................................... SKIPPED
[INFO] base-admin ......................................... SKIPPED
[INFO] base-generate ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2016-07-25T09:48:28+08:00
[INFO] Final Memory: 32M/385M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project base-common: Compilation failure
[ERROR] An unknown compilation problem occurred
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project base-common: Compilation failure
An unknown compilation problem occurred

	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
	at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
	at hudson.remoting.UserRequest.perform(UserRequest.java:152)
	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
	at hudson.remoting.Request$2.run(Request.java:332)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
An unknown compilation problem occurred

	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:911)
	at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 31 more
[ERROR] 
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :base-common
[JENKINS] Archiving /root/.jenkins/workspace/base-service/base-service/base-common/pom.xml to com.cykj/base-common/1.0.0-SNAPSHOT/base-common-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving /root/.jenkins/workspace/base-service/base-service/base-admin/pom.xml to com.cykj/base-admin/1.0.0-SNAPSHOT/base-admin-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving /root/.jenkins/workspace/base-service/base-service/pom.xml to com.cykj/base/1.0.0-SNAPSHOT/base-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving /root/.jenkins/workspace/base-service/base-service/base-core/pom.xml to com.cykj/base-core/1.0.0-SNAPSHOT/base-core-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving /root/.jenkins/workspace/base-service/base-service/base-generate/pom.xml to com.cykj/base-generate/1.0.0-SNAPSHOT/base-generate-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving /root/.jenkins/workspace/base-service/base-service/base-dao/pom.xml to com.cykj/base-dao/1.0.0-SNAPSHOT/base-dao-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving /root/.jenkins/workspace/base-service/base-service/base-service/pom.xml to com.cykj/base-service/1.0.0-SNAPSHOT/base-service-1.0.0-SNAPSHOT.pom
channel stopped
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

凌乱心跳 2021-12-04 15:29:58

插件的版本问题

墨洒年华 2021-12-04 15:20:26

我是用的-X -e启动的,信息只有那么多,往上都是正确的没报错

已下线请稍等 2021-12-03 13:36:04

回复
不使用jenkins呢?或者你单独编译base-common模块试试。我用了这么久maven,报错虽然页经常遇到,但一般都是会给出明确错误提示的

情场扛把子 2021-12-02 10:09:26

回复
还有你这个Fatal Error: Unable to find package java.lang in classpath or bootclasspath 又是什么鬼

皇甫轩 2021-11-30 11:12:38

 Re-run Maven using the -X switch to enable full debug logging.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文