michael-o commented on a change in pull request #683:
URL: https://github.com/apache/maven/pull/683#discussion_r815292246



##########
File path: 
maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildListCalculator.java
##########
@@ -55,12 +55,20 @@ public ProjectBuildList calculateProjectBuilds( 
MavenSession session, List<TaskS
             {
                 projects = session.getProjects();
             }
-            for ( MavenProject project : projects )
+            ClassLoader ccl = Thread.currentThread().getContextClassLoader();
+            try
             {
-                BuilderCommon.attachToThread( project ); // Not totally sure 
if this is needed for anything
-                MavenSession copiedSession = session.clone();
-                copiedSession.setCurrentProject( project );
-                projectBuilds.add( new ProjectSegment( project, taskSegment, 
copiedSession ) );
+                for ( MavenProject project : projects )

Review comment:
       Why not on a per-project basis?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to