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/07/14 12:24:42 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_r669565324



##########
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:
       @khmarbaise, @olamy or @rfscholte, can you help me with my question? Any example would be great...thank you.




-- 
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-unsubscribe@maven.apache.org

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