You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@maven.apache.org by Apache Jenkins Server <je...@builds.apache.org> on 2020/10/03 16:07:52 UTC

Build failed in Jenkins: Maven » Maven TLP » maven-pmd-plugin » mpmd-304 #5

See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-pmd-plugin/job/mpmd-304/5/

Changes:

* Add debug output to investigate content of user's toolchains.xml

All tests passed

Build log:
[...truncated 29424 lines...]
[Pipeline] // withMaven
[INFO] run post-build script verify.groovy
[INFO]           MPMD-258-multiple-executions\pom.xml ............. SUCCESS (7.6 s)
[INFO] Building: MPMD-259-analysis-cache-auxclasspath\pom.xml
[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] }
[withMaven] Publishers: Generated Artifacts Publisher: 1489 ms, Junit Publisher: 2617 ms, Open Task Scanner Publisher: 1326 ms, Invoker Publisher: 65689 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]           MPMD-259-analysis-cache-auxclasspath\pom.xml ..... SUCCESS (8.1 s)
[INFO] Building: MPMD-266-typeresolution-aggregated\pom.xml
[withMaven] Publishers: Generated Artifacts Publisher: 2555 ms, Junit Publisher: 4110 ms, Open Task Scanner Publisher: 1554 ms, Invoker Publisher: 63947 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]           MPMD-266-typeresolution-aggregated\pom.xml ....... SUCCESS (16.3 s)
[INFO] Building: MPMD-268-deprecated-rules\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-268-deprecated-rules\pom.xml ................ SUCCESS (6.5 s)
[INFO] Building: MPMD-270-JDK11\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-270-JDK11\pom.xml ........................... SUCCESS (6.8 s)
[INFO] Building: MPMD-277-multi-module-check\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-277-multi-module-check\pom.xml .............. SUCCESS (11.5 s)
[INFO] Building: MPMD-280-JDK12\pom.xml
[INFO]           MPMD-280-JDK12\pom.xml ........................... SKIPPED due to JRE version
[INFO] Building: MPMD-289-format-html-check\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-289-format-html-check\pom.xml ............... SUCCESS (5.6 s)
[INFO] Building: MPMD-295-JDK13\pom.xml
[INFO]           MPMD-295-JDK13\pom.xml ........................... SKIPPED due to JRE version
[INFO] Building: MPMD-296-rulesetsTargetDirectory\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-296-rulesetsTargetDirectory\pom.xml ......... SUCCESS (20.2 s)
[INFO] Building: MPMD-302-JDK14\pom.xml
[INFO]           MPMD-302-JDK14\pom.xml ........................... SKIPPED due to JRE version
[INFO] Building: MPMD-302-JDK15\pom.xml
[INFO]           MPMD-302-JDK15\pom.xml ........................... SKIPPED due to JRE version
[INFO] Building: MPMD-304-toolchain-support\pom.xml
[INFO] run pre-build script setup.groovy
[INFO] run post-build script verify.groovy
[INFO]   The post-build script did not succeed. assert buildLog.text.contains( '[INFO] Toolchain in maven-pmd-plugin: JDK[' )
       |        |    |
       |        |    false
       |        Running pre-build script: f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\setup.groovy
       |        Replaced '@jdk.home@' with 'f:\\jenkins\\tools\\java\\latest11' in 'f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\toolchains.xml'.
       |        java.io.FileNotFoundException: C:\Users\jenkins\.m2\toolchains.xml (The system cannot find the file specified)
       |        	at java.base/java.io.FileInputStream.open0(Native Method)
       |        	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
       |        	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
       |        	at groovy.util.CharsetToolkit.<init>(CharsetToolkit.java:71)
       |        	at org.codehaus.groovy.runtime.ResourceGroovyMethods.newReader(ResourceGroovyMethods.java:1572)
       |        	at org.codehaus.groovy.runtime.ResourceGroovyMethods.getText(ResourceGroovyMethods.java:600)
       |        	at org.codehaus.groovy.runtime.dgm$962.doMethodInvoke(Unknown Source)
       |        	at org.codehaus.groovy.reflection.GeneratedMetaMethod$Proxy.doMethodInvoke(GeneratedMetaMethod.java:73)
       |        	at org.codehaus.groovy.runtime.metaclass.MethodMetaProperty$GetBeanMethodMetaProperty.getProperty(MethodMetaProperty.java:76)
       |        	at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:64)
       |        	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
       |        	at Script1.run(Script1.groovy:32)
       |        	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
       |        	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
       |        	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
       |        	at org.apache.maven.shared.scriptinterpreter.GroovyScriptInterpreter.evaluateScript(GroovyScriptInterpreter.java:83)
       |        	at org.apache.maven.shared.scriptinterpreter.ScriptRunner.executeRun(ScriptRunner.java:256)
       |        	at org.apache.maven.shared.scriptinterpreter.ScriptRunner.run(ScriptRunner.java:180)
       |        	at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:2016)
       |        	at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:1671)
       |        	at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuilds(AbstractInvokerMojo.java:1379)
       |        	at org.apache.maven.plugins.invoker.AbstractInvokerMojo.execute(AbstractInvokerMojo.java:791)
       |        	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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       |        	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       |        	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       |        	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       |        	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
       |        	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
       |        	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
       |        	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
       |        Running post-build script: f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\verify.groovy
       f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\build.log
[INFO]           MPMD-304-toolchain-support\pom.xml ............... FAILED (0.1 s)
[INFO] Building: mpmd-80-included\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           mpmd-80-included\pom.xml ......................... SUCCESS (7.4 s)
[INFO] Building: mpmd-80-not-included\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           mpmd-80-not-included\pom.xml ..................... SUCCESS (8.1 s)
[INFO] Building: MPMD-89-232-typeresolution\pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-89-232-typeresolution\pom.xml ............... SUCCESS (5.7 s)
[INFO] Building: multi-module\pom.xml
[INFO] run post-build script verify.bsh
[INFO]           multi-module\pom.xml ............................. SUCCESS (11.1 s)
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ maven-pmd-plugin ---
[INFO] 
[INFO] --- maven-invoker-plugin:3.2.1:verify (integration-test) @ maven-pmd-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 32, Failed: 1, Errors: 0, Skipped: 4
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] *  MPMD-304-toolchain-support\pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  06:27 min
[INFO] Finished at: 2020-10-03T09:06:56-07:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated F:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2@tmp\withMavenc94ff0ee\maven-spy-20201003-090028-17115449966670718753849.log
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:3.2.1:verify (integration-test) on project maven-pmd-plugin: 1 build 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.2.1:verify (integration-test) on project maven-pmd-plugin: 1 build failed. See console output above for details.
    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 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:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoFailureException: 1 build failed. See console output above for details.
    at org.apache.maven.plugins.invoker.InvokerSession.handleFailures (InvokerSession.java:259)
    at org.apache.maven.plugins.invoker.VerifyMojo.execute (VerifyMojo.java:140)
    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 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:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[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] }
[withMaven] junitPublisher - Archive test results for Maven artifact org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-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-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT in source directory windows-jdk11-m3.6.x_build\src\main\java
[TASKS] Scanning folder 'f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2' for files matching the pattern 'windows-jdk11-m3.6.x_build\src\main\java\**\*' - excludes: null
[TASKS] Found 21 files to scan for tasks
[TASKS] Found 8 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #4
[withMaven] invokerPublisher - Archive invoker results for Maven artifact MavenArtifact{org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT(version: 3.14.0-SNAPSHOT, snapshot:false) } generated by PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.2.1@integration-test  integration-test}: windows-jdk11-m3.6.x_build\target\invoker-reports\*.xml
[withMaven] Publishers: Generated Artifacts Publisher: 1093 ms, Junit Publisher: 1995 ms, Open Task Scanner Publisher: 995 ms, Invoker Publisher: 19901 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.6.x_build
[Pipeline] // parallel
[Pipeline] stage
[Pipeline] { (Notifications)
[Pipeline] echo
Build result: FAILURE
[Pipeline] jiraIssueSelector
[Pipeline] echo
The authors of changes [adangel].
[Pipeline] echo
Sending email ...
[Pipeline] emailext

Build succeeded in Jenkins: Maven » Maven TLP » maven-pmd-plugin » mpmd-304 #6

Posted by Apache Jenkins Server <je...@builds.apache.org>.
See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-pmd-plugin/job/mpmd-304/6/

Changes:

* Revert "Add debug output to investigate content of user's toolchains.xml"

All tests passed