mirror of https://github.com/apache/maven.git
[MNG-2878] Adding an import from the maven core classrealm into the plugin classrealm, to allow retrieval of default-report.xml using getClass().getResourceAsStream(..) which is used in maven-reporting-impl 2.0...which in turn is used from checkstyle (at least).
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@574392 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b1159725a5
commit
84f0cdabdb
|
@ -418,6 +418,14 @@ public class DefaultPluginManager
|
|||
Xpp3Dom.class.getName() );
|
||||
componentRealm.importFrom( componentRealm.getParentRealm().getId(),
|
||||
"org.codehaus.plexus.util.xml.pull" );
|
||||
|
||||
// Adding for MNG-2878, since maven-reporting-impl was removed from the
|
||||
// internal list of artifacts managed by maven, the classloader is different
|
||||
// between maven-reporting-impl and maven-reporting-api...so this resource
|
||||
// is not available from the AbstractMavenReport since it uses:
|
||||
// getClass().getResourceAsStream( "/default-report.xml" )
|
||||
// (maven-reporting-impl version 2.0; line 134; affects: checkstyle plugin, and probably others)
|
||||
componentRealm.importFrom( componentRealm.getParentRealm().getId(), "/default-report.xml" );
|
||||
}
|
||||
catch ( PlexusContainerException e )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue