Tibor17 commented on a change in pull request #504:
URL: https://github.com/apache/maven-surefire/pull/504#discussion_r838001570



##########
File path: 
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireDependencyResolver.java
##########
@@ -184,7 +189,17 @@ private ArtifactResolutionResult resolveArtifact( Artifact 
artifact, List<Artifa
             .setCollectionFilter( filter )
             .setRemoteRepositories( repositories );
 
-        return repositorySystem.resolve( request );
+        ArtifactResolutionResult result = repositorySystem.resolve( request );
+        try
+        {
+            resolutionErrorHandler.throwErrors( request, result );
+        }
+        catch ( ArtifactResolutionException e )
+        {
+            throw new RuntimeException( e );

Review comment:
       Pls throw `MojoExecutionException` instead.
   Update the method signatures.
   Run `mvn clean` and reinstall current module again to make sure 
`maven-surefire-common` can be compiled.




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