mirror of https://github.com/apache/maven.git
[MNG-4385] [regression] Custom lifecycle mappings from build extension leak into other projects in the reactor without extension
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@820616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b88d97c41
commit
2cf974570a
|
@ -134,6 +134,13 @@ class DefaultModelBuildingListener
|
|||
*/
|
||||
Thread.currentThread().setContextClassLoader( project.getClassRealm() );
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Reset context class loader to core realm.
|
||||
*/
|
||||
Thread.currentThread().setContextClassLoader( getClass().getClassLoader() );
|
||||
}
|
||||
}
|
||||
|
||||
// build the regular repos after extensions are loaded to allow for custom layouts
|
||||
|
|
Loading…
Reference in New Issue