You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Robert Scholte <rf...@apache.org> on 2013/05/09 14:59:17 UTC

Re: Build failed in Jenkins: maven-plugins-ITs-m3 #972

Hervé and others,

it looks like the ITs for the maven-project-info-reports-plugin fail due  
to a ClassCastException:
Caused by: java.lang.ClassCastException:  
org.sonatype.aether.util.DefaultRepositorySystemSession cannot be cast to  
org.eclipse.aether.RepositorySystemSession

The DefaultDependencyGraphBuilder uses  
"org.eclipse.aether.artifact.Artifact" to detect if we're using maven3.1
When I run the ITs with M3.0.5 I get the log-message:
[DEBUG] building maven31 dependency graph for  
org.apache.maven.plugins.project-info-reports:full-pom:jar:1.0-SNAPSHOT
My guess is, that this plugin also uses the classloader of the  
maven-site-plugin, which has both of the aether implementations of  
Artifact.
The easy way to fix this, is to detect the version of Maven based on the  
pom.properties of maven-core, but I think we need have a closer look at  
the classloaders.

Anyone with classloader-skills who can have a look at this?

Robert


Op Thu, 09 May 2013 13:39:36 +0200 schreef Apache Jenkins Server  
<je...@builds.apache.org>:

> See <https://builds.apache.org/job/maven-plugins-ITs-m3/972/changes>
>
> Changes:
>
> [krosenvold] Revert "Java 5 stuff"
>
> o This change broke the ITs on 2.2.1
>
> Conflicts:
> 	src/main/java/org/apache/maven/plugin/assembly/format/FileSetFormatter.java
>
> ------------------------------------------
> [...truncated 11290 lines...]
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-SNAPSHOT/maven-resources-plugin-2.7-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plugin/target/maven-resources-plugin-2.7-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-SNAPSHOT/maven-resources-plugin-2.7-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-SNAPSHOT/maven-resources-plugin-2.7-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plugin/target/maven-resources-plugin-2.7-SNAPSHOT-tests.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-SNAPSHOT/maven-resources-plugin-2.7-SNAPSHOT-tests.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-site-plugin/dependency-reduced-pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-site-plugin/3.3-SNAPSHOT/maven-site-plugin-3.3-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-site-plugin/target/maven-site-plugin-3.3-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-site-plugin/3.3-SNAPSHOT/maven-site-plugin-3.3-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-site-plugin/dependency-reduced-pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-site-plugin/3.3-SNAPSHOT/maven-site-plugin-3.3-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-source-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-source-plugin/2.3-SNAPSHOT/maven-source-plugin-2.3-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-source-plugin/target/maven-source-plugin-2.3-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-source-plugin/2.3-SNAPSHOT/maven-source-plugin-2.3-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-source-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-source-plugin/2.3-SNAPSHOT/maven-source-plugin-2.3-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-stage-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-stage-plugin/1.0-SNAPSHOT/maven-stage-plugin-1.0-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-stage-plugin/target/maven-stage-plugin-1.0-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-stage-plugin/1.0-SNAPSHOT/maven-stage-plugin-1.0-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-stage-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-stage-plugin/1.0-SNAPSHOT/maven-stage-plugin-1.0-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-toolchains-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-toolchains-plugin/1.1-SNAPSHOT/maven-toolchains-plugin-1.1-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-toolchains-plugin/target/maven-toolchains-plugin-1.1-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-toolchains-plugin/1.1-SNAPSHOT/maven-toolchains-plugin-1.1-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-toolchains-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-toolchains-plugin/1.1-SNAPSHOT/maven-toolchains-plugin-1.1-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-verifier-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-verifier-plugin/1.1-SNAPSHOT/maven-verifier-plugin-1.1-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-verifier-plugin/target/maven-verifier-plugin-1.1-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-verifier-plugin/1.1-SNAPSHOT/maven-verifier-plugin-1.1-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-verifier-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-verifier-plugin/1.1-SNAPSHOT/maven-verifier-plugin-1.1-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-war-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-war-plugin/2.4-SNAPSHOT/maven-war-plugin-2.4-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-war-plugin/target/maven-war-plugin-2.4-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-war-plugin/2.4-SNAPSHOT/maven-war-plugin-2.4-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-war-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-war-plugin/2.4-SNAPSHOT/maven-war-plugin-2.4-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-scm-publish-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-scm-publish-plugin/1.0-SNAPSHOT/maven-scm-publish-plugin-1.0-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-scm-publish-plugin/target/maven-scm-publish-plugin-1.0-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-scm-publish-plugin/1.0-SNAPSHOT/maven-scm-publish-plugin-1.0-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-scm-publish-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-scm-publish-plugin/1.0-SNAPSHOT/maven-scm-publish-plugin-1.0-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-invoker-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-invoker-plugin/1.9-SNAPSHOT/maven-invoker-plugin-1.9-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-invoker-plugin/target/maven-invoker-plugin-1.9-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-invoker-plugin/1.9-SNAPSHOT/maven-invoker-plugin-1.9-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-invoker-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-invoker-plugin/1.9-SNAPSHOT/maven-invoker-plugin-1.9-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-project-info-reports-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-project-info-reports-plugin/2.7-SNAPSHOT/maven-project-info-reports-plugin-2.7-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-project-info-reports-plugin/target/maven-project-info-reports-plugin-2.7-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-project-info-reports-plugin/2.7-SNAPSHOT/maven-project-info-reports-plugin-2.7-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-remote-resources-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-remote-resources-plugin/1.5-SNAPSHOT/maven-remote-resources-plugin-1.5-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-remote-resources-plugin/target/maven-remote-resources-plugin-1.5-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-remote-resources-plugin/1.5-SNAPSHOT/maven-remote-resources-plugin-1.5-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-remote-resources-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-remote-resources-plugin/1.5-SNAPSHOT/maven-remote-resources-plugin-1.5-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/pom.xml>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-shade-plugin/3.0-SNAPSHOT/maven-shade-plugin-3.0-SNAPSHOT.pom>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/maven-shade-plugin-3.0-SNAPSHOT.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-shade-plugin/3.0-SNAPSHOT/maven-shade-plugin-3.0-SNAPSHOT.jar>
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/maven-shade-plugin-3.0-SNAPSHOT-tests.jar>  
> to  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/local-repo/org/apache/maven/plugins/maven-shade-plugin/3.0-SNAPSHOT/maven-shade-plugin-3.0-SNAPSHOT-tests.jar>
> [INFO]
> [INFO] --- maven-invoker-plugin:1.8:integration-test (integration-test)  
> @ maven-shade-plugin ---
> [INFO] Building: xml-transformer-ignores-dtd/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.3 s)
> [INFO] Building: attach-after-lifecycle-fork/pom.xml
> [INFO] run script setup.bsh
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.1 s)
> [INFO] Building: duplicate-classes-without-reloc/pom.xml
> [INFO] ..SUCCESS (2.9 s)
> [INFO] Building: filter-artifact-contents/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: component-descriptor-relocation/pom.xml
> [INFO] ..SUCCESS (4.8 s)
> [INFO] Building: finalNameShade/pom.xml
> [INFO] run script setup.bsh
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: manifest-retained/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.4 s)
> [INFO] Building: manifest-transformed/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.2 s)
> [INFO] Building: services-resource-transformer/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: plugin-descriptor-relocation/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (7.7 s)
> [INFO] Building: pom-packaging/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (2.5 s)
> [INFO] Building: non-runtime-scope-excluded/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.8 s)
> [INFO] Building: reloc-anno/pom.xml
> [INFO] ..SUCCESS (3.3 s)
> [INFO] Building: mini-jar-respect-includes/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.7 s)
> [INFO] Building: empty-relocation-pattern/pom.xml
> [INFO] ..SUCCESS (3.8 s)
> [INFO] Building: finalNameBuild/pom.xml
> [INFO] run script setup.bsh
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.6 s)
> [INFO] Building: attached-artifact-type/pom.xml
> [INFO] ..SUCCESS (3.3 s)
> [INFO] Building: empty-relocation-shaded-pattern/pom.xml
> [INFO] ..SUCCESS (3.5 s)
> [INFO] Building: reloc-includes-excludes/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.4 s)
> [INFO] Building: rerun-with-reloc/pom.xml
> [INFO] ..SUCCESS (6.1 s)
> [INFO] Building: implicit-inclusion-of-project-artifact/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.9 s)
> [INFO] Building: duplicate-classes-with-reloc/pom.xml
> [INFO] ..SUCCESS (3.0 s)
> [INFO] Building: dep-reduced-pom/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: rerun-without-reloc/pom.xml
> [INFO] ..SUCCESS (3.4 s)
> [INFO] Building: finalNameBuild-attached/pom.xml
> [INFO] run script setup.bsh
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: finalNameShade-attached/pom.xml
> [INFO] run script setup.bsh
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.8 s)
> [INFO] Building: shadePomDependency/pom.xml
> [INFO] ..SUCCESS (4.4 s)
> [INFO] Building: artifact-includes-excludes/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: reloc-enum-ref-from-anno/pom.xml
> [INFO] ..SUCCESS (3.3 s)
> [INFO] Building: mini-jar-package-info/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.4 s)
> [INFO] Building: project-with-reactors-included/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (5.6 s)
> [INFO] Building: dep-reduced-pom-use-base-version/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: dep-reduced-pom-with-local-parent/pom.xml
> [INFO] ..SUCCESS (2.8 s)
> [INFO] Building: mini-jar/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (4.2 s)
> [INFO] Building: dep-reduced-pom-unique/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (4.1 s)
> [INFO] Building: mini-jar-malformed-dependencies/pom.xml
> [INFO] ..SUCCESS (8.6 s)
> [INFO] Building: reloc-abs-resource-path/pom.xml
> [INFO] ..SUCCESS (5.8 s)
> [INFO] Building: MSHADE-105/pom.xml
> [INFO] run script verify.bsh
> [INFO] ..SUCCESS (7.8 s)
> [INFO] Building: mshade-123/pom.xml
> [INFO] ..SUCCESS (5.8 s)
> [INFO] Building: reloc-class-from-string-pool/pom.xml
> [INFO] ..SUCCESS (3.3 s)
> [INFO] Building: users-shader-impl/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (4.2 s)
> [INFO] Building: empty-apache-notice-transform/pom.xml
> [INFO] ..SUCCESS (4.0 s)
> [INFO] Building: dep-reduced-pom-relocated-result/pom.xml
> [INFO] ..SUCCESS (2.7 s)
> [INFO]
> [INFO] --- maven-invoker-plugin:1.8:verify (integration-test) @  
> maven-shade-plugin ---
> [INFO] -------------------------------------------------
> [INFO] Build Summary:
> [INFO]   Passed: 43, Failed: 0, Errors: 0, Skipped: 0
> [INFO] -------------------------------------------------
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @  
> maven-shade-plugin ---
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/maven-shade-plugin-3.0-SNAPSHOT.jar>  
> to  
> /home/jenkins/.m2/repository/org/apache/maven/plugins/maven-shade-plugin/3.0-SNAPSHOT/maven-shade-plugin-3.0-SNAPSHOT.jar
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/pom.xml>  
> to  
> /home/jenkins/.m2/repository/org/apache/maven/plugins/maven-shade-plugin/3.0-SNAPSHOT/maven-shade-plugin-3.0-SNAPSHOT.pom
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/target/maven-shade-plugin-3.0-SNAPSHOT-tests.jar>  
> to  
> /home/jenkins/.m2/repository/org/apache/maven/plugins/maven-shade-plugin/3.0-SNAPSHOT/maven-shade-plugin-3.0-SNAPSHOT-tests.jar
> [INFO]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Building Maven Plugins Aggregator 1-SNAPSHOT
> [INFO]  
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @  
> maven-plugins-aggregator ---
> [INFO] Deleting  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/target>
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.1:process (default) @  
> maven-plugins-aggregator ---
> [INFO] Setting property: classpath.resource.loader.class =>  
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @  
> maven-plugins-aggregator ---
> [INFO] Installing  
> <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/pom.xml> to  
> /home/jenkins/.m2/repository/org/apache/maven/plugins/maven-plugins-aggregator/1-SNAPSHOT/maven-plugins-aggregator-1-SNAPSHOT.pom
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Maven Plugins ..................................... SUCCESS  
> [5.813s]
> [INFO] Maven ACR Plugin .................................. SUCCESS  
> [24.159s]
> [INFO] Maven Ant Plugin .................................. SUCCESS  
> [1:17.368s]
> [INFO] Maven AntRun Plugin ............................... SUCCESS  
> [57.772s]
> [INFO] Maven Eclipse Plugin .............................. SUCCESS  
> [6:58.963s]
> [INFO] Maven Assembly Plugin ............................. SUCCESS  
> [11:22.427s]
> [INFO] Maven Changelog Plugin ............................ SUCCESS  
> [59.602s]
> [INFO] Maven Changes Report Plugin ....................... SUCCESS  
> [1:11.358s]
> [INFO] Maven Checkstyle Plugin ........................... SUCCESS  
> [1:53.038s]
> [INFO] Maven Clean Plugin ................................ SUCCESS  
> [23.020s]
> [INFO] Maven Compiler Plugin ............................. SUCCESS  
> [1:33.578s]
> [INFO] Maven Dependency Plugin ........................... SUCCESS  
> [3:05.106s]
> [INFO] Maven Deploy Plugin ............................... SUCCESS  
> [1:09.350s]
> [INFO] Maven DOAP Plugin ................................. SUCCESS  
> [21.889s]
> [INFO] Maven Documentation Checker Plugin ................ SUCCESS  
> [6.536s]
> [INFO] Maven EAR Plugin .................................. SUCCESS  
> [4:03.042s]
> [INFO] Maven EJB Plugin .................................. SUCCESS  
> [30.724s]
> [INFO] Maven GPG Plugin .................................. SUCCESS  
> [14.870s]
> [INFO] Maven Help Plugin ................................. SUCCESS  
> [53.492s]
> [INFO] Maven IDEA Plugin ................................. SUCCESS  
> [15.834s]
> [INFO] Maven Install Plugin .............................. SUCCESS  
> [48.595s]
> [INFO] Maven JAR Plugin .................................. SUCCESS  
> [1:13.974s]
> [INFO] Maven Jarsigner Plugin ............................ SUCCESS  
> [28.279s]
> [INFO] Maven Javadoc Plugin .............................. SUCCESS  
> [3:18.571s]
> [INFO] Maven Linkcheck Plugin ............................ SUCCESS  
> [3.166s]
> [INFO] Maven One Plugin .................................. SUCCESS  
> [3.650s]
> [INFO] Maven Patch Plugin ................................ SUCCESS  
> [14.836s]
> [INFO] Maven PDF Plugin .................................. SUCCESS  
> [43.334s]
> [INFO] Maven PMD Plugin .................................. SUCCESS  
> [1:28.612s]
> [INFO] Maven RAR Plugin .................................. SUCCESS  
> [12.532s]
> [INFO] Maven Reactor Plugin .............................. SUCCESS  
> [3.483s]
> [INFO] Maven Repository Plugin ........................... SUCCESS  
> [46.690s]
> [INFO] Maven Resources Plugin ............................ SUCCESS  
> [59.980s]
> [INFO] Maven Site Plugin 3 ............................... SUCCESS  
> [7:14.518s]
> [INFO] Maven Source Plugin ............................... SUCCESS  
> [51.162s]
> [INFO] Maven Stage Plugin ................................ SUCCESS  
> [3.075s]
> [INFO] Maven Toolchains Plugin ........................... SUCCESS  
> [2.273s]
> [INFO] Maven Verifier Plugin ............................. SUCCESS  
> [16.343s]
> [INFO] Maven WAR Plugin .................................. SUCCESS  
> [1:29.566s]
> [INFO] Maven SCM Publish Plugin .......................... SUCCESS  
> [57.649s]
> [INFO] Maven Invoker Plugin .............................. SUCCESS  
> [5:15.966s]
> [INFO] Maven Project Info Reports Plugin ................. FAILURE  
> [42.732s]
> [INFO] Maven Remote Resources Plugin ..................... SUCCESS  
> [54.530s]
> [INFO] Maven Shade Plugin ................................ SUCCESS  
> [3:19.098s]
> [INFO] Maven Plugins Aggregator .......................... SUCCESS  
> [0.822s]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Total time: 1:09:22.966s
> [INFO] Finished at: Thu May 09 11:37:12 UTC 2013
> [INFO] Final Memory: 93M/309M
> [INFO]  
> ------------------------------------------------------------------------
> [WARNING] The requested profile "apache.snapshots" could not be  
> activated because it does not exist.
> [ERROR] Failed to execute goal  
> org.apache.maven.plugins:maven-invoker-plugin:1.7:verify  
> (integration-test) on project maven-project-info-reports-plugin: 2  
> builds failed. See console output above for details. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the  
> -e switch.
> [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
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the  
> command
> [ERROR]   mvn <goals> -rf :maven-project-info-reports-plugin
> Build step 'Invoke top-level Maven targets' marked build as failure
> Recording test results

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Build failed in Jenkins: maven-plugins-ITs-m3 #972

Posted by Hervé BOUTEMY <he...@free.fr>.
yes, it seems my detection algorithm works nice inside a plugin (like in shade or 
dependency:tree) but fails in a report: I thought I tested, but I must have missed 
this one.

I just fixed it in http://svn.apache.org/r1480729[1]

thanks for the report

Regards,

Hervé

Le jeudi 9 mai 2013 14:59:17 Robert Scholte a écrit :
> Hervé and others,
> 
> it looks like the ITs for the maven-project-info-reports-plugin fail due
> to a ClassCastException:
> Caused by: java.lang.ClassCastException:
> org.sonatype.aether.util.DefaultRepositorySystemSession cannot be cast to
> org.eclipse.aether.RepositorySystemSession
> 
> The DefaultDependencyGraphBuilder uses
> "org.eclipse.aether.artifact.Artifact" to detect if we're using maven3.1
> When I run the ITs with M3.0.5 I get the log-message:
> [DEBUG] building maven31 dependency graph for
> org.apache.maven.plugins.project-info-reports:full-pom:jar:1.0-SNAPSHOT
> My guess is, that this plugin also uses the classloader of the
> maven-site-plugin, which has both of the aether implementations of
> Artifact.
> The easy way to fix this, is to detect the version of Maven based on the
> pom.properties of maven-core, but I think we need have a closer look at
> the classloaders.
> 
> Anyone with classloader-skills who can have a look at this?
> 
> Robert
> 
> 
> Op Thu, 09 May 2013 13:39:36 +0200 schreef Apache Jenkins Server
> 
> <je...@builds.apache.org>:
> > See <https://builds.apache.org/job/maven-plugins-ITs-m3/972/changes>
> > 
> > Changes:
> > 
> > [krosenvold] Revert "Java 5 stuff"
> > 
> > o This change broke the ITs on 2.2.1
> > 
> > Conflicts:
> > 	
src/main/java/org/apache/maven/plugin/assembly/format/FileSetFormatter.ja
> > 	va
> > 
> > ------------------------------------------
> > [...truncated 11290 lines...]
> > [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plu
> > gin/pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-
SNAP
> > SHOT/maven-resources-plugin-2.7-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plu
> > gin/target/maven-resources-plugin-2.7-SNAPSHOT.jar> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-
SNAP
> > SHOT/maven-resources-plugin-2.7-SNAPSHOT.jar> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plu
> > gin/pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-
SNAP
> > SHOT/maven-resources-plugin-2.7-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-resources-plu
> > gin/target/maven-resources-plugin-2.7-SNAPSHOT-tests.jar> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-resources-plugin/2.7-
SNAP
> > SHOT/maven-resources-plugin-2.7-SNAPSHOT-tests.jar> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-site-plugin/d
> > ependency-reduced-pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-site-plugin/3.3-SNAPSHOT/
> > maven-site-plugin-3.3-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-site-plugin/t
> > arget/maven-site-plugin-3.3-SNAPSHOT.jar> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-site-plugin/3.3-SNAPSHOT/
> > maven-site-plugin-3.3-SNAPSHOT.jar> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-site-plugin/d
> > ependency-reduced-pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-site-plugin/3.3-SNAPSHOT/
> > maven-site-plugin-3.3-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-source-plugin
> > /pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-source-plugin/2.3-
SNAPSHO
> > T/maven-source-plugin-2.3-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-source-plugin
> > /target/maven-source-plugin-2.3-SNAPSHOT.jar> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-source-plugin/2.3-
SNAPSHO
> > T/maven-source-plugin-2.3-SNAPSHOT.jar> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-source-plugin
> > /pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-source-plugin/2.3-
SNAPSHO
> > T/maven-source-plugin-2.3-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-stage-plugin/
> > pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-stage-plugin/1.0-
SNAPSHOT
> > /maven-stage-plugin-1.0-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-stage-plugin/
> > target/maven-stage-plugin-1.0-SNAPSHOT.jar> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-stage-plugin/1.0-
SNAPSHOT
> > /maven-stage-plugin-1.0-SNAPSHOT.jar> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-stage-plugin/
> > pom.xml> to
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-shade-plugin/
> > target/local-repo/org/apache/maven/plugins/maven-stage-plugin/1.0-
SNAPSHOT
> > /maven-stage-plugin-1.0-SNAPSHOT.pom> [INFO] Installing
> > <https://builds.apache.org/job/maven-plugins-ITs-m3/ws/maven-toolchains-pl
> > ugin/pom.xml> to