maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <>
Subject [jira] Created: (MNG-5019) [regression] String-based component lookups performed by report mojos fail with ClassCastException
Date Mon, 21 Feb 2011 23:02:22 GMT
[regression] String-based component lookups performed by report mojos fail with ClassCastException

                 Key: MNG-5019
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Class Loading
    Affects Versions: 3.0.2
            Reporter: Benjamin Bentmann

>From the IT MSITE-506 of the Site Plugin:
Caused by: java.lang.ClassCastException:$__plexus6
  at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(
  at org.apache.maven.plugin.javadoc.resolver.ResourceResolver.resolveAndUnpack(
  at org.apache.maven.plugin.javadoc.resolver.ResourceResolver.resolveFromArtifacts(
  at org.apache.maven.plugin.javadoc.resolver.ResourceResolver.resolveDependencySourcePaths(
  at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getDependencySourcePaths(
  at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getSourcePaths(
  at org.apache.maven.plugin.javadoc.JavadocReport.canGenerateReport(


Cause is the following container scenario:
    site-plugin-realm        <-- plexus lookup realm
      javadoc-plugin-realm   <-- TCCL
where both the Site Plugin and the Javadoc Plugin depend on plexus-archiver.

The way the container resolves string-based roles is to first check the lookup realm, then
the TCCL for the interface/component. In the setup above, this ends up using components from
the Site Plugin for the execution of the Javadoc Plugin, boom.

After talking with Stuart, the fix seems to be as simple as just nullifying the lookup realm,
thereby consequently using the TCCL for the lookups.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message