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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Sebastian Musioł
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] [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 :blueocean-commons

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

Full logs with debugs under:
https://drive.google.com/open?id=0B1I0SxPG8c65UnN6LWJWeVZqMTg


Thanks for help in advance.

BR,
Seba

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f3126dcb-d559-4476-bbee-dcb3d732b923%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pom.xml (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Michael Neale-2
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.



On Thursday, June 9, 2016 at 5:55:09 AM UTC+10, Sebastian Musioł wrote:
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] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGaJwCeoibCpQ86aiPLWDPHJDTRFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGaJwCeoibCpQ86aiPLWDPHJDTRFg&#39;;return true;">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 :blueocean-commons

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

Full logs with debugs under:
<a href="https://drive.google.com/open?id=0B1I0SxPG8c65UnN6LWJWeVZqMTg" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://drive.google.com/open?id\x3d0B1I0SxPG8c65UnN6LWJWeVZqMTg&#39;;return true;" onclick="this.href=&#39;https://drive.google.com/open?id\x3d0B1I0SxPG8c65UnN6LWJWeVZqMTg&#39;;return true;">https://drive.google.com/open?id=0B1I0SxPG8c65UnN6LWJWeVZqMTg


Thanks for help in advance.

BR,
Seba

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/507a04ba-5a77-4899-be4a-e9d4126e3bfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Michael Neale-2
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. 

On Thursday, June 9, 2016 at 2:52:00 PM UTC+10, Michael Neale wrote:
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.



On Thursday, June 9, 2016 at 5:55:09 AM UTC+10, Sebastian Musioł wrote:
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] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGaJwCeoibCpQ86aiPLWDPHJDTRFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGaJwCeoibCpQ86aiPLWDPHJDTRFg&#39;;return true;">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 :blueocean-commons

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

Full logs with debugs under:
<a href="https://drive.google.com/open?id=0B1I0SxPG8c65UnN6LWJWeVZqMTg" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://drive.google.com/open?id\x3d0B1I0SxPG8c65UnN6LWJWeVZqMTg&#39;;return true;" onclick="this.href=&#39;https://drive.google.com/open?id\x3d0B1I0SxPG8c65UnN6LWJWeVZqMTg&#39;;return true;">https://drive.google.com/open?id=0B1I0SxPG8c65UnN6LWJWeVZqMTg


Thanks for help in advance.

BR,
Seba

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bbf54579-02b3-4755-bc17-4f439429f6b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Abe Fehr
In reply to this post by Sebastian Musioł
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.

On Wednesday, June 8, 2016 at 9:55:09 PM UTC+2, Sebastian Musioł wrote:
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] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGaJwCeoibCpQ86aiPLWDPHJDTRFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGaJwCeoibCpQ86aiPLWDPHJDTRFg&#39;;return true;">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 :blueocean-commons

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

Full logs with debugs under:
<a href="https://drive.google.com/open?id=0B1I0SxPG8c65UnN6LWJWeVZqMTg" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://drive.google.com/open?id\x3d0B1I0SxPG8c65UnN6LWJWeVZqMTg&#39;;return true;" onclick="this.href=&#39;https://drive.google.com/open?id\x3d0B1I0SxPG8c65UnN6LWJWeVZqMTg&#39;;return true;">https://drive.google.com/open?id=0B1I0SxPG8c65UnN6LWJWeVZqMTg


Thanks for help in advance.

BR,
Seba

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/39ea201b-e07c-418f-81c5-fc069fd6348e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Sorin Ionuț Sbârnea
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 [hidden email].
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 | Threaded
Open this post in threaded view
|

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

Mark Waite-2
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 <[hidden email]> 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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGDK_Pg_7NnUyBefdt_3chuhFPRObhW7iHMwkMqinmVRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.