See
https://builds.apache.org/job/maven-box/job/maven-jlink-plugin/job/CLEANUP/11/
Changes:
* Add support for Maven 3.6.x/3.6.0
* More verbose info about build exceptions
* Verbose info about failure - add bit more
* Revert: no access to currntBuild.rawBuild
All tests passed
Build log:
[...truncated 2459 lines...]
at java.lang.reflect.Method.invoke (Method.java:566)
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.MojoFailureException: 12 builds failed. See
console output above for details.
at org.apache.maven.plugins.invoker.InvokerSession.handleFailures
(InvokerSession.java:260)
at org.apache.maven.plugins.invoker.VerifyMojo.execute (VerifyMojo.java:137)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
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:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
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] 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
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Fast Archiver] No prior successful build to compare, so performing full copy
of artifacts
[withMaven] junitPublisher - Archive test results for Maven artifact
org.apache.maven.plugins:maven-jlink-plugin:maven-plugin:3.0.0-alpha-2-SNAPSHOT
generated by maven-surefire-plugin:test (default-test):
linux-jdk11-m3.5.x_build/target/surefire-reports/*.xml
Recording test results
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact
org.apache.maven.plugins:maven-jlink-plugin:maven-plugin:3.0.0-alpha-2-SNAPSHOT
in source directory linux-jdk11-m3.5.x_build/src/main/java
[INFO] setup-jar-module-info\pom.xml .................... FAILED (9.5
s)
[INFO] The build exited with code 1. See
f:\jenkins\jenkins-slave\workspace\n-box_maven-jlink-plugin_CLEANUP@2\windows-jdk11-m3.5.x_build\target\it\setup-jar-module-info\build.log
for details.
[INFO] Setup done.
[INFO] Building: cli-options\bind-services\pom.xml
[TASKS] Scanning folder
'/home/jenkins/jenkins-slave/workspace/n-box_maven-jlink-plugin_CLEANUP@2' for
files matching the pattern 'linux-jdk11-m3.5.x_build/src/main/java/**/*' -
excludes: null
[TASKS] Found 2 files to scan for tasks
[TASKS] Found 5 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[withMaven] Publishers: Generated Artifacts Publisher: 160 ms, Junit Publisher:
663 ms, Open Task Scanner Publisher: 651 ms
[Pipeline] // withMaven
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ws
[Pipeline] }
[Pipeline] // node
[Pipeline] }
Failed in branch linux-jdk11-m3.5.x_build
[INFO] snapshot
org.apache.maven.plugins:maven-jlink-plugin:3.0.0-alpha-2-SNAPSHOT: checking
for updates from apache-snapshots
[INFO] snapshot
org.apache.maven.plugins:maven-jlink-plugin:3.0.0-alpha-2-SNAPSHOT: checking
for updates from Nexus
[INFO] artifact
org.apache.maven.plugins.maven-jlink-plugin:3.0.0-alpha-2-SNAPSHOT: checking
for updates from central
[INFO] artifact localhost.first-jar-module-info:99.0: checking for updates from
central
[INFO] localhost.first-jar-module-info.99.0: checking for updates from central
[INFO] run post-build script verify.groovy
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.codehaus.groovy.reflection.CachedClass
(file:/f:/jenkins/jenkins-slave/workspace/.maven_repositories/null/org/codehaus/groovy/groovy-all/2.4.8/groovy-all-2.4.8.jar)
to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of
org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] cli-options\bind-services\pom.xml ................ FAILED
(14.1 s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\compress-0\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\compress-0\pom.xml ................... FAILED (8.9
s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\compress-1\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\compress-1\pom.xml ................... FAILED (8.3
s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\compress-2\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\compress-2\pom.xml ................... FAILED (8.5
s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\disable-plugin\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\disable-plugin\pom.xml ............... FAILED (9.6
s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\endian\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\endian\pom.xml ....................... FAILED (7.5
s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\endian-big\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\endian-big\pom.xml ................... FAILED (9.7
s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\ignore-signing-information\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\ignore-signing-information\pom.xml ... FAILED
(10.6 s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\no-header-files\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\no-header-files\pom.xml .............. FAILED (7.8
s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\no-man-pages\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\no-man-pages\pom.xml ................. FAILED
(10.0 s)
[INFO] The post-build script returned false.
[INFO] Building: cli-options\strip-debug\pom.xml
[INFO] run post-build script verify.groovy
[INFO] cli-options\strip-debug\pom.xml .................. FAILED (8.7
s)
[INFO] The post-build script returned false.
[INFO] Building: MJLINK-3_improveVerboseOutput\pom.xml
[INFO] MJLINK-3_improveVerboseOutput\pom.xml ............ SUCCESS
(24.2 s)
[INFO] Building: MJLINK-4_dependencyResolution\pom.xml
[INFO] MJLINK-4_dependencyResolution\pom.xml ............ SUCCESS
(20.0 s)
[INFO]
[INFO] --- mrm-maven-plugin:1.1.0:stop (default) @ maven-jlink-plugin ---
[INFO] Stopping Mock Repository Manager on http://localhost:54398
[INFO] Stopped [email protected]:54398
[INFO] Mock Repository Manager http://localhost:54398 is stopped.
[INFO]
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @
maven-jlink-plugin ---
[INFO]
[INFO] --- maven-invoker-plugin:3.1.0:verify (integration-test) @
maven-jlink-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 3, Failed: 12, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] * cli-options\bind-services\pom.xml
[ERROR] * cli-options\compress-0\pom.xml
[ERROR] * cli-options\compress-1\pom.xml
[ERROR] * cli-options\compress-2\pom.xml
[ERROR] * cli-options\disable-plugin\pom.xml
[ERROR] * cli-options\endian-big\pom.xml
[ERROR] * cli-options\endian\pom.xml
[ERROR] * cli-options\ignore-signing-information\pom.xml
[ERROR] * cli-options\no-header-files\pom.xml
[ERROR] * cli-options\no-man-pages\pom.xml
[ERROR] * cli-options\strip-debug\pom.xml
[ERROR] * setup-jar-module-info\pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:25 min
[INFO] Finished at: 2019-01-31T10:40:35Z
[INFO] Final Memory: 48M/167M
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated
F:\jenkins\jenkins-slave\workspace\n-box_maven-jlink-plugin_CLEANUP@2@tmp\withMaven18b6f6ff\maven-spy-20190131-103708-85511230760141033153851.log
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-invoker-plugin:3.1.0:verify (integration-test)
on project maven-jlink-plugin: 12 builds failed. See console output above for
details. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.maven.plugins:maven-invoker-plugin:3.1.0:verify (integration-test)
on project maven-jlink-plugin: 12 builds failed. See console output above for
details.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
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.MojoFailureException: 12 builds failed. See
console output above for details.
at org.apache.maven.plugins.invoker.InvokerSession.handleFailures
(InvokerSession.java:260)
at org.apache.maven.plugins.invoker.VerifyMojo.execute (VerifyMojo.java:137)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
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] 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
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Fast Archiver] No prior successful build to compare, so performing full copy
of artifacts
[withMaven] junitPublisher - Archive test results for Maven artifact
org.apache.maven.plugins:maven-jlink-plugin:maven-plugin:3.0.0-alpha-2-SNAPSHOT
generated by maven-surefire-plugin:test (default-test):
windows-jdk11-m3.5.x_build\target\surefire-reports\*.xml
Recording test results
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact
org.apache.maven.plugins:maven-jlink-plugin:maven-plugin:3.0.0-alpha-2-SNAPSHOT
in source directory windows-jdk11-m3.5.x_build\src\main\java
[TASKS] Scanning folder
'f:\jenkins\jenkins-slave\workspace\n-box_maven-jlink-plugin_CLEANUP@2' for
files matching the pattern 'windows-jdk11-m3.5.x_build\src\main\java\**\*' -
excludes: null
[TASKS] Found 2 files to scan for tasks
[TASKS] Found 5 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[withMaven] Publishers: Generated Artifacts Publisher: 22 ms, Junit Publisher:
86 ms, Open Task Scanner Publisher: 97 ms
[Pipeline] // withMaven
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ws
[Pipeline] }
[Pipeline] // node
[Pipeline] }
Failed in branch windows-jdk11-m3.5.x_build
[Pipeline] // parallel
[Pipeline] stage
[Pipeline] { (Notifications)
[Pipeline] echo
Build result: FAILURE
[Pipeline] jiraIssueSelector
[Pipeline] emailext