slawekjaranowski commented on code in PR #11888:
URL: https://github.com/apache/maven/pull/11888#discussion_r3320335579


##########
impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java:
##########
@@ -260,15 +268,46 @@ private String getMessage(String message, Throwable 
exception) {
                 fullMessage = join(fullMessage, exceptionMessage);
             }
 
+            if (t instanceof ArtifactFilteredOutException) {
+                hasArtifactFilteredOut = true;
+            }
+
             if (!dejaVu.add(t)) {
                 fullMessage = join(fullMessage, "[CIRCULAR REFERENCE]");
                 break;
             }
         }
 
+        if (hasArtifactFilteredOut) {
+            fullMessage += System.lineSeparator()
+                    + System.lineSeparator()
+                    + "This error indicates that a remote repository filter 
has rejected this artifact."
+                    + " This commonly happens with repository managers using 
virtual/group repositories"
+                    + " that do not properly aggregate prefix files."
+                    + System.lineSeparator()
+                    + "To disable remote repository filtering, add one or both 
of these"
+                    + " to your command line or to .mvn/maven.config:"
+                    + System.lineSeparator()
+                    + "  -Daether.remoteRepositoryFilter.prefixes=false"
+                    + System.lineSeparator()
+                    + "  -Daether.remoteRepositoryFilter.groupId=false"
+                    + System.lineSeparator()
+                    + "See 
https://maven.apache.org/resolver/remote-repository-filtering.html";;

Review Comment:
   URL is returned by getReference method



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to