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
> 
> <jenk...@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

Reply via email to