gnodet commented on code in PR #55:
URL: 
https://github.com/apache/maven-assembly-plugin/pull/55#discussion_r866052752


##########
src/main/java/org/apache/maven/plugins/assembly/archive/task/AddDependencySetsTask.java:
##########
@@ -183,7 +185,12 @@ void addDependencySet( final DependencySet dependencySet, 
final Archiver archive
 
     private ProjectBuildingRequest getProjectBuildingRequest( 
AssemblerConfigurationSource configSource )
     {
-        return configSource.getMavenSession().getProjectBuildingRequest();
+        MavenSession mavenSession = configSource.getMavenSession();
+        return new DefaultProjectBuildingRequest()
+                .setRepositorySession( mavenSession.getRepositorySession() )
+                .setSystemProperties( mavenSession.getSystemProperties() )
+                .setUserProperties( mavenSession.getUserProperties() )
+                .setProcessPlugins( false );
     }

Review Comment:
   Why not reusing the existing `ProjectBuildingRequest` ? What does that 
actually change ?
   Shouldn't that be something like:
   ```
   return  new DefaultProjectBuildingRequest( 
configSource.getMavenSession().getProjectBuildingRequest() )
         .setProcessPlugins( false );
   ```
   I fear not reusing the existing will loose remote repositories and other 
settings, not sure though.



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