[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:
Benjamin Bentmann 2009-10-01 11:39:28 +00:00
parent 8b88d97c41
commit 2cf974570a
1 changed files with 7 additions and 0 deletions

View File

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