Build unstable in Jenkins: Maven » Maven TLP » maven-shade-plugin » MSHADE-307 #16

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

Build unstable in Jenkins: Maven » Maven TLP » maven-shade-plugin » MSHADE-307 #16

Apache Jenkins Server-2
See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-shade-plugin/job/MSHADE-307/16/

Changes:

* Next Maven version change 3.7.x -> 4.x.x
* Added Java 17

4 tests failed.
FAILED:  org.apache.maven.plugins.shade.filter.MinijarFilterTest.linux-jdk16-m3.6.x_build / Build linux-jdk16-m3.6.x_build / testWithPomProject

Error Message:
null

Stack Trace:
java.lang.ExceptionInInitializerError
        at org.apache.maven.plugins.shade.filter.MinijarFilterTest.mockProject(MinijarFilterTest.java:112)
        at org.apache.maven.plugins.shade.filter.MinijarFilterTest.testWithPomProject(MinijarFilterTest.java:92)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @209c0b14
        at org.apache.maven.plugins.shade.filter.MinijarFilterTest.mockProject(MinijarFilterTest.java:112)
        at org.apache.maven.plugins.shade.filter.MinijarFilterTest.testWithPomProject(MinijarFilterTest.java:92)


FAILED:  org.apache.maven.plugins.shade.filter.MinijarFilterTest.linux-jdk16-m3.6.x_build / Build linux-jdk16-m3.6.x_build / finsishedShouldProduceMessageForClassesTotalNonZero

Error Message:
Could not initialize class org.mockito.internal.creation.jmock.ClassImposterizer$3

Stack Trace:
java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.creation.jmock.ClassImposterizer$3
        at org.apache.maven.plugins.shade.filter.MinijarFilterTest.finsishedShouldProduceMessageForClassesTotalNonZero(MinijarFilterTest.java:143)


FAILED:  org.apache.maven.plugins.shade.filter.MinijarFilterTest.linux-jdk16-m3.6.x_build / Build linux-jdk16-m3.6.x_build / finsishedShouldProduceMessageForClassesTotalZero

Error Message:
Could not initialize class org.mockito.internal.creation.jmock.ClassImposterizer$3

Stack Trace:
java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.creation.jmock.ClassImposterizer$3
        at org.apache.maven.plugins.shade.filter.MinijarFilterTest.finsishedShouldProduceMessageForClassesTotalZero(MinijarFilterTest.java:160)


FAILED:  org.apache.maven.plugins.shade.mojo.ShadeMojoTest.linux-jdk16-m3.6.x_build / Build linux-jdk16-m3.6.x_build / testShadeWithFilter

Error Message:
Could not initialize class org.mockito.internal.creation.jmock.ClassImposterizer$3

Stack Trace:
java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.creation.jmock.ClassImposterizer$3
        at org.apache.maven.plugins.shade.mojo.ShadeMojoTest.testShadeWithFilter(ShadeMojoTest.java:191)




Build log:
[...truncated 6553 lines...]
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:33 min
[INFO] Finished at: 2021-01-14T03:02:18-08:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated F:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2@tmp\withMavenc5939892\maven-spy-20210114-025644-1506631585070122485233.log
Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="f:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2@tmp\withMavenc5939892\pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="f:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2@tmp\withMavenc5939892"
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] artifactsPublisher - Archive artifact windows-jdk8-m3.6.x_build\pom.xml under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT.pom
[withMaven] artifactsPublisher - Archive artifact windows-jdk8-m3.6.x_build\target\maven-shade-plugin-3.2.2-SNAPSHOT.jar under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT.jar
[withMaven] artifactsPublisher - Archive artifact windows-jdk8-m3.6.x_build\target\maven-shade-plugin-3.2.2-SNAPSHOT-tests.jar under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT-tests.jar
[withMaven] junitPublisher - Archive test results for Maven artifact org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT generated by maven-surefire-plugin:test (default-test): windows-jdk8-m3.6.x_build\target\surefire-reports\*.xml
Recording test results
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT in source directory windows-jdk8-m3.6.x_build\src\main\java
[TASKS] Scanning folder 'f:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2' for files matching the pattern 'windows-jdk8-m3.6.x_build\src\main\java\**\*' - excludes: null
[TASKS] Found 32 files to scan for tasks
[TASKS] Found 2 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #15
[withMaven] invokerPublisher - Archive invoker results for Maven artifact MavenArtifact{org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT(version: 3.2.2-SNAPSHOT, snapshot:false) } generated by PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test  integration-test}: windows-jdk8-m3.6.x_build\target\invoker-reports\*.xml
[INFO] run post-build script verify.groovy
[INFO]           MSHADE-232_ResourceBundleAppendingTransformer\pom.xml SUCCESS (5.4 s)
[INFO] Building: MSHADE-239_finalName-attachments\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           plugin-descriptor-relocation\pom.xml ............. SUCCESS (14.2 s)
[INFO] Building: pom-packaging\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           pom-packaging\pom.xml ............................ SUCCESS (3.5 s)
[INFO] Building: project-with-reactors-included\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MSHADE-239_finalName-attachments\pom.xml ......... SUCCESS (5.7 s)
[INFO] Building: MSHADE-240_reloc-mavenfiles\pom.xml
[INFO] run post-build script verify.bsh
[INFO] run post-build script verify.groovy
[INFO]           MSHADE-240_reloc-mavenfiles\pom.xml .............. SUCCESS (7.2 s)
[INFO] Building: MSHADE-247\pom.xml
[INFO]           project-with-reactors-included\pom.xml ........... SUCCESS (7.9 s)
[INFO] Building: reloc-abs-resource-path\pom.xml
[INFO]           MSHADE-247\pom.xml ............................... SUCCESS (6.3 s)
[INFO] Building: MSHADE-258_module_relocation\pom.xml
[INFO]           reloc-abs-resource-path\pom.xml .................. SUCCESS (6.0 s)
[INFO] Building: reloc-abs-resource-path-exclude\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MSHADE-258_module_relocation\pom.xml ............. SUCCESS (4.9 s)
[INFO] Building: non-runtime-scope-excluded\pom.xml
[INFO]           reloc-abs-resource-path-exclude\pom.xml .......... SUCCESS (6.1 s)
[INFO] Building: reloc-anno\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           non-runtime-scope-excluded\pom.xml ............... SUCCESS (4.9 s)
[INFO] Building: plugin-descriptor-relocation\pom.xml
[withMaven] Publishers: Generated Artifacts Publisher: 294 ms, Junit Publisher: 1555 ms, Open Task Scanner Publisher: 175 ms, Invoker Publisher: 31155 ms
[Pipeline] // withMaven
[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] }
[INFO]           reloc-anno\pom.xml ............................... SUCCESS (5.3 s)
[INFO] Building: reloc-class-from-string-pool\pom.xml
[INFO]           reloc-class-from-string-pool\pom.xml ............. SUCCESS (5.1 s)
[INFO] Building: reloc-enum-ref-from-anno\pom.xml
[INFO]           reloc-enum-ref-from-anno\pom.xml ................. SUCCESS (5.2 s)
[INFO] Building: reloc-includes-excludes\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           plugin-descriptor-relocation\pom.xml ............. SUCCESS (15.8 s)
[INFO] Building: pom-packaging\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           reloc-includes-excludes\pom.xml .................. SUCCESS (4.9 s)
[INFO] Building: rerun-with-reloc\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           pom-packaging\pom.xml ............................ SUCCESS (3.5 s)
[INFO] Building: project-with-reactors-included\pom.xml
[INFO]           rerun-with-reloc\pom.xml ......................... SUCCESS (6.3 s)
[INFO] Building: rerun-without-reloc\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           project-with-reactors-included\pom.xml ........... SUCCESS (8.4 s)
[INFO] Building: reloc-abs-resource-path\pom.xml
[INFO]           rerun-without-reloc\pom.xml ...................... SUCCESS (5.3 s)
[INFO] Building: services-resource-transformer\pom.xml
[INFO]           reloc-abs-resource-path\pom.xml .................. SUCCESS (5.9 s)
[INFO] Building: reloc-abs-resource-path-exclude\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           services-resource-transformer\pom.xml ............ SUCCESS (4.8 s)
[INFO] Building: services-resource-transformer-with-reloc-includes-excludes\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           services-resource-transformer-with-reloc-includes-excludes\pom.xml SUCCESS (5.1 s)
[INFO] Building: shadePomDependency\pom.xml
[INFO]           reloc-abs-resource-path-exclude\pom.xml .......... SUCCESS (6.2 s)
[INFO] Building: reloc-anno\pom.xml
[INFO]           shadePomDependency\pom.xml ....................... SUCCESS (6.1 s)
[INFO] Building: shading-with-java-10-sources\pom.xml
[INFO]           reloc-anno\pom.xml ............................... SUCCESS (5.3 s)
[INFO] Building: reloc-class-from-string-pool\pom.xml
[INFO]           reloc-class-from-string-pool\pom.xml ............. SUCCESS (5.4 s)
[INFO] Building: reloc-enum-ref-from-anno\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           shading-with-java-10-sources\pom.xml ............. SUCCESS (7.5 s)
[INFO] Building: shading-with-java-11-sources\pom.xml
[INFO]           reloc-enum-ref-from-anno\pom.xml ................. SUCCESS (5.4 s)
[INFO] Building: reloc-includes-excludes\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           shading-with-java-11-sources\pom.xml ............. SUCCESS (5.8 s)
[INFO] Building: shading-with-java-8-sources\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           reloc-includes-excludes\pom.xml .................. SUCCESS (5.2 s)
[INFO] Building: rerun-with-reloc\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           shading-with-java-8-sources\pom.xml .............. SUCCESS (5.8 s)
[INFO] Building: users-shader-impl\pom.xml
[INFO]           rerun-with-reloc\pom.xml ......................... SUCCESS (6.0 s)
[INFO] Building: rerun-without-reloc\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           users-shader-impl\pom.xml ........................ SUCCESS (6.1 s)
[INFO] Building: xml-transformer-ignores-dtd\pom.xml
[INFO]           rerun-without-reloc\pom.xml ...................... SUCCESS (5.5 s)
[INFO] Building: services-resource-transformer\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           xml-transformer-ignores-dtd\pom.xml .............. SUCCESS (4.7 s)
[INFO]
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ maven-shade-plugin ---
[INFO] There are 3 errors reported by Checkstyle 6.18 with config/maven_checks.xml ruleset.
[INFO] Ignored 3 errors, 0 violation remaining.
[INFO]
[INFO] --- maven-invoker-plugin:3.1.0:verify (integration-test) @ maven-shade-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 60, Failed: 0, Errors: 0, Skipped: 1
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  06:29 min
[INFO] Finished at: 2021-01-14T03:04:08-08:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated F:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2@tmp\withMavenf4178ae2\maven-spy-20210114-025738-4135547174408200149302.log
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[INFO] run post-build script verify.bsh
[INFO]           services-resource-transformer\pom.xml ............ SUCCESS (5.2 s)
[INFO] Building: services-resource-transformer-with-reloc-includes-excludes\pom.xml
[withMaven] artifactsPublisher - Archive artifact windows-jdk11-m3.6.x_build\pom.xml under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT.pom
[withMaven] artifactsPublisher - Archive artifact windows-jdk11-m3.6.x_build\target\maven-shade-plugin-3.2.2-SNAPSHOT.jar under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT.jar
[withMaven] artifactsPublisher - Archive artifact windows-jdk11-m3.6.x_build\target\maven-shade-plugin-3.2.2-SNAPSHOT-tests.jar under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT-tests.jar
[withMaven] junitPublisher - Archive test results for Maven artifact org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT generated by maven-surefire-plugin:test (default-test): windows-jdk11-m3.6.x_build\target\surefire-reports\*.xml
Recording test results
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT in source directory windows-jdk11-m3.6.x_build\src\main\java
[TASKS] Scanning folder 'f:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2' for files matching the pattern 'windows-jdk11-m3.6.x_build\src\main\java\**\*' - excludes: null
[TASKS] Found 32 files to scan for tasks
[TASKS] Found 2 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #15
[withMaven] invokerPublisher - Archive invoker results for Maven artifact MavenArtifact{org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT(version: 3.2.2-SNAPSHOT, snapshot:false) } generated by PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test  integration-test}: windows-jdk11-m3.6.x_build\target\invoker-reports\*.xml
[INFO] run post-build script verify.bsh
[INFO]           services-resource-transformer-with-reloc-includes-excludes\pom.xml SUCCESS (5.2 s)
[INFO] Building: shadePomDependency\pom.xml
[INFO]           shadePomDependency\pom.xml ....................... SUCCESS (6.3 s)
[INFO] Building: shading-with-java-10-sources\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           shading-with-java-10-sources\pom.xml ............. SUCCESS (7.9 s)
[INFO] Building: shading-with-java-11-sources\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           shading-with-java-11-sources\pom.xml ............. SUCCESS (6.3 s)
[INFO] Building: shading-with-java-8-sources\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           shading-with-java-8-sources\pom.xml .............. SUCCESS (6.2 s)
[INFO] Building: users-shader-impl\pom.xml
[withMaven] Publishers: Generated Artifacts Publisher: 281 ms, Junit Publisher: 1517 ms, Open Task Scanner Publisher: 147 ms, Invoker Publisher: 30024 ms, Pipeline Graph Publisher: 1 ms
[Pipeline] // withMaven
[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] }
[INFO] run post-build script verify.groovy
[INFO]           users-shader-impl\pom.xml ........................ SUCCESS (6.5 s)
[INFO] Building: xml-transformer-ignores-dtd\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           xml-transformer-ignores-dtd\pom.xml .............. SUCCESS (5.1 s)
[INFO]
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ maven-shade-plugin ---
[INFO] There are 3 errors reported by Checkstyle 6.18 with config/maven_checks.xml ruleset.
[INFO] Ignored 3 errors, 0 violation remaining.
[INFO]
[INFO] --- maven-invoker-plugin:3.1.0:verify (integration-test) @ maven-shade-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 60, Failed: 0, Errors: 0, Skipped: 1
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  07:10 min
[INFO] Finished at: 2021-01-14T03:04:56-08:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated F:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2@tmp\withMavena6b94ec0\maven-spy-20210114-025745-66010408208084535553617.log
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] artifactsPublisher - Archive artifact windows-jdk15-m3.6.x_build\pom.xml under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT.pom
[withMaven] artifactsPublisher - Archive artifact windows-jdk15-m3.6.x_build\target\maven-shade-plugin-3.2.2-SNAPSHOT.jar under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT.jar
[withMaven] artifactsPublisher - Archive artifact windows-jdk15-m3.6.x_build\target\maven-shade-plugin-3.2.2-SNAPSHOT-tests.jar under org\apache\maven\plugins\maven-shade-plugin\3.2.2-SNAPSHOT\maven-shade-plugin-3.2.2-SNAPSHOT-tests.jar
[withMaven] junitPublisher - Archive test results for Maven artifact org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT generated by maven-surefire-plugin:test (default-test): windows-jdk15-m3.6.x_build\target\surefire-reports\*.xml
Recording test results
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT in source directory windows-jdk15-m3.6.x_build\src\main\java
[TASKS] Scanning folder 'f:\jenkins\jenkins-slave\712657a4\workspace\ox_maven-shade-plugin_MSHADE-307@2' for files matching the pattern 'windows-jdk15-m3.6.x_build\src\main\java\**\*' - excludes: null
[TASKS] Found 32 files to scan for tasks
[TASKS] Found 2 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #15
[withMaven] invokerPublisher - Archive invoker results for Maven artifact MavenArtifact{org.apache.maven.plugins:maven-shade-plugin:maven-plugin:3.2.2-SNAPSHOT(version: 3.2.2-SNAPSHOT, snapshot:false) } generated by PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test  integration-test}: windows-jdk15-m3.6.x_build\target\invoker-reports\*.xml
[withMaven] Publishers: Generated Artifacts Publisher: 324 ms, Junit Publisher: 1569 ms, Open Task Scanner Publisher: 178 ms, Invoker Publisher: 30871 ms
[Pipeline] // withMaven
[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] }
[Pipeline] // parallel
[Pipeline] stage
[Pipeline] { (Notifications)
[Pipeline] echo
Build result: UNSTABLE
[Pipeline] jiraIssueSelector
[Pipeline] echo
The authors of changes [slachiewicz].
[Pipeline] echo
Sending email ...
[Pipeline] emailext