maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r820616 - /maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java
Date Thu, 01 Oct 2009 11:39:28 GMT
Author: bentmann
Date: Thu Oct  1 11:39:28 2009
New Revision: 820616

URL: http://svn.apache.org/viewvc?rev=820616&view=rev
Log:
[MNG-4385] [regression] Custom lifecycle mappings from build extension leak into other projects
in the reactor without extension

Modified:
    maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java

Modified: maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java?rev=820616&r1=820615&r2=820616&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java
(original)
+++ maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java
Thu Oct  1 11:39:28 2009
@@ -134,6 +134,13 @@
                  */
                 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



Mime
View raw message