Fix #11856: Improve error message for prefix-based remote repository filtering errors#11888
Draft
Fix #11856: Improve error message for prefix-based remote repository filtering errors#11888
Conversation
…filtering errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comment on lines
+284
to
+292
| + "This error indicates that the remote repository's prefix file does not list" | ||
| + " this artifact's group. This commonly happens with repository managers" | ||
| + " using virtual/group repositories that do not properly aggregate prefix files." | ||
| + System.lineSeparator() | ||
| + "To disable prefix-based filtering, add" | ||
| + " -Daether.remoteRepositoryFilter.prefixes=false" | ||
| + " to your command line or to .mvn/maven.config." | ||
| + System.lineSeparator() | ||
| + "See https://maven.apache.org/resolver/remote-repository-filtering.html"; |
Member
There was a problem hiding this comment.
It can be also from GroupId Filter, so we need to use other property aether.remoteRepositoryFilter.groupId=false
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ArtifactFilteredOutExceptionin the exception cause chain and append actionable guidance explaining that the remote repository's prefix file doesn't list the artifact's group-Daether.remoteRepositoryFilter.prefixes=falseand link to RRF documentationgetReference()to return the RRF docs URL instead of the generic MojoExecutionException wiki pagehttps:reference URLs (previously onlyhttp:was recognized as an absolute URL)Closes #11856
Test plan
DefaultExceptionHandlerTest.testArtifactFilteredOutException()verifying both the hint message and reference URL🤖 Generated with Claude Code
Claude Code on behalf of Guillaume Nodet