Build Jenkins fail on project cli: Compilation failure

48 views
Skip to first unread message

liyud...@hotmail.com

unread,
Mar 17, 2019, 6:42:24 AM3/17/19
to Jenkins Developers
Hi,

I'm trying to build Jenkins following guides on CONTRIBUTING.md but failed, could anyone help?

Command:
git clone https://github.com/jenkinsci/jenkins.git
cd jenkins
mvn clean package -pl war -am -DskipTests -Dfindbugs.skip


Environment: 

Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T02:41:47+08:00)


Maven home: /root/apache-maven-3.6.0


Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre


Default locale: zh_CN, platform encoding: UTF-8


OS name: "linux", version: "3.10.0-957.1.3.el7.x86_64", arch: "amd64", family: "unix"


Output: full debug output in attachment

[WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment.


[DEBUG] incrementalBuildHelper#afterRebuildExecution


[INFO] ------------------------------------------------------------------------


[INFO] Reactor Summary for Jenkins main module 2.169-SNAPSHOT:


[INFO]


[INFO] Jenkins main module ................................ SUCCESS [  0.565 s]


[INFO] Jenkins cli ........................................ FAILURE [  0.658 s]


[INFO] Jenkins core ....................................... SKIPPED


[INFO] Jenkins war ........................................ SKIPPED


[INFO] ------------------------------------------------------------------------


[INFO] BUILD FAILURE


[INFO] ------------------------------------------------------------------------


[INFO] Total time:  2.203 s


[INFO] Finished at: 2019-03-17T15:43:13+08:00


[INFO] ------------------------------------------------------------------------


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project cli: Compilation failure -> [Help 1]


org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project cli: Compilation failure


    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)


    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)


    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)


    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)


    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)


    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)


    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)


    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)


    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)


    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)


    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)


    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)


    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)


    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.launchEnhanced (Launcher.java:289)


    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)


    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)


    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)


Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure


    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1219)


    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:188)


    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)


    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)


    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)


    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)


    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)


    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)


    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)


    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)


    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)


    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)


    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)


    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)


    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)


    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)


    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.launchEnhanced (Launcher.java:289)


    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)


    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)


    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)


[ERROR]


[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 :cli



output.txt

Daniel Beck

unread,
Mar 17, 2019, 7:00:26 AM3/17/19
to Jenkins Developers


> On 17. Mar 2019, at 08:50, liyud...@hotmail.com wrote:
>
> Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre

That looks like a Java runtime. You need a Java compiler.

Rick

unread,
Mar 17, 2019, 7:03:06 AM3/17/19
to Developers Jenkins
Yes, I missed this log message.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/A0BFD573-DD26-4508-B99E-35D009E8B2BD%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


--

liyud...@hotmail.com

unread,
Mar 17, 2019, 7:44:21 AM3/17/19
to Jenkins Developers
Thanks, you are right. I reinstalled JDK and successfully compiled Jenkins now.
Reply all
Reply to author
Forward
0 new messages