You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2021/06/05 13:09:21 UTC

[GitHub] [maven-compiler-plugin] mseele commented on a change in pull request #40: [MCOMPILER-272] - When annotationProcessorPaths has multiple entries,…

mseele commented on a change in pull request #40:
URL: https://github.com/apache/maven-compiler-plugin/pull/40#discussion_r645989152



##########
File path: src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
##########
@@ -1660,26 +1660,27 @@ private boolean hasNewFile( File classPathEntry, Date buildStartTime )
                 requiredArtifacts.add( artifact );
             }
 
-            ArtifactResolutionRequest request = new ArtifactResolutionRequest()
-                            .setArtifact( requiredArtifacts.iterator().next() )
-                            .setResolveRoot( true )
-                            .setResolveTransitively( true )
-                            .setArtifactDependencies( requiredArtifacts )
-                            .setLocalRepository( session.getLocalRepository() )
-                            .setRemoteRepositories( project.getRemoteArtifactRepositories() );
+            Set<String> elements = new HashSet<>(  );
 
-            ArtifactResolutionResult resolutionResult = repositorySystem.resolve( request );
+            for ( Artifact artifact : requiredArtifacts )
+            {
+                ArtifactResolutionRequest request = new ArtifactResolutionRequest()
+                                .setArtifact( artifact )
+                                .setResolveRoot( true )
+                                .setResolveTransitively( true )
+                                .setLocalRepository( session.getLocalRepository() )
+                                .setRemoteRepositories( project.getRemoteArtifactRepositories() );
 
-            resolutionErrorHandler.throwErrors( request, resolutionResult );
+                ArtifactResolutionResult resolutionResult = repositorySystem.resolve( request );

Review comment:
       @jkuhn1: any intention to work on this pull request or should i create a new one to fix this issue?




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

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