[Jenkins][BlueOcean] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile

694 views
Skip to first unread message

Sebastian Musioł

unread,
Jun 8, 2016, 3:55:09 PM6/8/16
to Jenkins Users
Hello all,

I have an issue with blueocean building. After executing 'mvn clean install' command there is an error visible:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project blueocean-commons: Compilation failure
[ERROR] java.nio.file.NoSuchFileException: /home/arex/tools/jenkins-blueocean/blueocean-commons/target/classes/META-INF/annotations/hudson.Extension
[ERROR] -> [Help 1]

Below snapshot from logs:

Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 9-internal, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-9-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-22-generic", arch: "amd64", family: "unix"
...
[INFO] /home/arex/tools/jenkins-blueocean/blueocean-commons/src/main/java/io/jenkins/blueocean/commons/stapler/JsonBody.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] java.nio.file.NoSuchFileException: /home/arex/tools/jenkins-blueocean/blueocean-commons/target/classes/META-INF/annotations/hudson.Extension
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Blue Ocean UI Parent ............................... SUCCESS [  8.020 s]
[INFO] BlueOcean :: Commons API ........................... FAILURE [  6.952 s]
[INFO] BlueOcean :: Web module ............................ SKIPPED
[INFO] BlueOcean :: Rest module ........................... SKIPPED
[INFO] BlueOcean :: Dashboard ............................. SKIPPED
[INFO] BlueOcean :: REST API implementation ............... SKIPPED
[INFO] BlueOcean :: Aggregator ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.701 s
[INFO] Finished at: 2016-06-08T21:40:53+02:00
[INFO] Final Memory: 57M/190M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project blueocean-commons: Compilation failure
[ERROR] java.nio.file.NoSuchFileException: /home/arex/tools/jenkins-blueocean/blueocean-commons/target/classes/META-INF/annotations/hudson.Extension
[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 blueocean-commons: Compilation failure
java.nio.file.NoSuchFileException: /home/arex/tools/jenkins-blueocean/blueocean-commons/target/classes/META-INF/annotations/hudson.Extension

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.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
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
java.nio.file.NoSuchFileException: /home/arex/tools/jenkins-blueocean/blueocean-commons/target/classes/META-INF/annotations/hudson.Extension

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)
... 20 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :blueocean-commons

pom.xml without changes (sam as in latest git rev, attached)

Full logs with debugs under:


Thanks for help in advance.

BR,
Seba
pom.xml

Michael Neale

unread,
Jun 9, 2016, 12:52:00 AM6/9/16
to Jenkins Users
Sorry Sebastian - can't really tell much from that failure. 

Try a clean checkout? 

I know people are now building on OSX and windows (almost working there) and linux.

Michael Neale

unread,
Jun 9, 2016, 12:53:57 AM6/9/16
to Jenkins Users
if you are looking at kicking the tyres - docker with "jenkinsci/blueocean" should have a fairly recent build available (docker run -p 8080:8080 jenkinsci/blueocean I believe it is) - may be an easier way to get started. 

Hopefully will be in the update center soon for people to try. 

Abe Fehr

unread,
Jun 16, 2016, 12:37:49 PM6/16/16
to Jenkins Users
What version of Java are you using? My JAVA_HOME was originally pointing to a Java 9 install which failed with the same error, but pointing it to Java 8 worked, or at least, it's farther right now.

Sorin Ionuț Sbârnea

unread,
Jan 21, 2018, 8:17:17 AM1/21/18
to Jenkins Users
While I can confirm that compilation works after assuring that mvn is using the Java 8 and not Java 9, the question is still valid... why on 2018 we are still unable to compile jenkins plugins using the current stable version of Java (1.9).

The problem seems to be specific to annotations/hudson.Extension because the only plugins I found as broken are those using this, others passed compilation without problems.

Mark Waite

unread,
Jan 21, 2018, 11:20:23 AM1/21/18
to jenkins...@googlegroups.com
The first goal of the JDK 9 experiments that we ran at the Jenkins World 2017 Hackfest was to identify issues using JDK 9 as the runtime.  That already had significant issues.  Refer to https://issues.jenkins-ci.org/browse/JENKINS-40689 for links to the issues that were identified.  ASM upgrade is required, and Groovy work is likely required.

I think that compiling with JDK 9 won't be a concern until after running with JDK 9 is working and more issues are resolved.

Mark Waite

On Sun, Jan 21, 2018 at 6:17 AM Sorin Ionuț Sbârnea <sorin....@gmail.com> wrote:
While I can confirm that compilation works after assuring that mvn is using the Java 8 and not Java 9, the question is still valid... why on 2018 we are still unable to compile jenkins plugins using the current stable version of Java (1.9).

The problem seems to be specific to annotations/hudson.Extension because the only plugins I found as broken are those using this, others passed compilation without problems.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0a4dab73-b1d4-480d-920b-24e0c5f2cbf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages