简体   繁体   English

詹金斯 org.apache.maven.plugins:maven-compiler-plugin:2.0.2

[英]Jenkins org.apache.maven.plugins:maven-compiler-plugin:2.0.2

I'm running Jenkins to build up a Maven project, and I'm getting the following error, which I have no clue how to solve.我正在运行 Jenkins 来构建 Maven 项目,但出现以下错误,我不知道如何解决。 I have spent an entire day searching through Google and here, but nothing seems to work.我花了一整天的时间在谷歌和这里搜索,但似乎没有任何效果。

Thanks in advance for your help and guidance.在此先感谢您的帮助和指导。


Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: /usr/local/apache-maven-3.0.4
Java version: 1.7.0_04, vendor: Oracle Corporation
Java home: /var/lib/jenkins/tools/JDK/Java_1.6.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-279.el6.x86_64", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.

**loads of other INFO and Debug logs**

[DEBUG] Extension realms for project com.mycompany.app:my-app:pom:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project web-platform3: Compilation failure
cause : Compilation failure
Stack trace : 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project web-platform3: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    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:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
    at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 27 more
channel stopped
Finished: FAILURE

Java version: 1.7.0_04, vendor: Oracle Corporation Java 版本:1.7.0_04,供应商:Oracle Corporation

Java home: /var/lib/jenkins/tools/JDK/Java_1.6.0/jre Java 主页:/var/lib/jenkins/tools/JDK/Java_1.6.0/jre

This looks strange.这看起来很奇怪。 Are you sure this is correct?你确定这是正确的吗? Maybe try to use the same version.也许尝试使用相同的版本。

The JAVA_HOME should not point to the jre folder. JAVA_HOME不应指向jre文件夹。 Try with试试

JAVA_HOME=/var/lib/jenkins/tools/JDK/Java_1.7.0_04/

I created a description for this under this link:我在此链接下为此创建了一个描述:

https://stackoverflow.com/a/17683183/1068938 https://stackoverflow.com/a/17683183/1068938

In most of the cases it is a UTF-8 conversion problem大多数情况下是UTF-8转换问题

I hope it will help you.我希望它会帮助你。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Intelij IDEA-无法执行目标org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile - Intelij IDEA - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile 无法执行目标org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile Jenkins 构建错误:[错误] 无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1compile: - Jenkins build Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile org.apache.maven.plugins:即使在Eclipse中有Maven插件,maven-compiler-plugin也丢失了 - org.apache.maven.plugins:maven-compiler-plugin is missing even there is a maven plug in in eclipse 在 maven org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 目标期间出现错误 - Getting error duing maven org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile goal Maven:未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.10.1compile: - Maven: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile 未找到插件“org.apache.maven.plugins:maven-compiler-plugin:3.7.0” - Plugin 'org.apache.maven.plugins:maven-compiler-plugin:3.7.0' not found 未解决的插件:'org.apache.maven.plugins:maven-compiler-plugin:3.1' - Unresolved plugin:'org.apache.maven.plugins:maven-compiler-plugin:3.1' 找不到插件'org.apache.maven.plugins:maven-compiler-plugin:3.8.0' - Plugin 'org.apache.maven.plugins:maven-compiler-plugin:3.8.0' not found 插件 org.apache.maven.plugins:maven-compiler-plugin 或其依赖项之一无法解析 - Plugin org.apache.maven.plugins:maven-compiler-plugin or one of its dependencies could not be resolved
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM