Skip to content

[4.0.x] Fix #11856: Improve error message for prefix-based remote repository filtering errors#12234

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:cherry-pick-11888-to-4.0.x
Jun 4, 2026
Merged

[4.0.x] Fix #11856: Improve error message for prefix-based remote repository filtering errors#12234
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:cherry-pick-11888-to-4.0.x

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented Jun 4, 2026

Cherry-pick of #11888

…itory filtering errors (apache#11888)

* Fix apache#11856: Improve error message for prefix-based remote repository filtering errors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix apache#11856: Mention both prefixes and groupId filters in error message

The ArtifactFilteredOutException can be triggered by either the prefixes
or the groupId remote repository filter. Update the error message to
mention both properties so users know which to disable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Refactor: Convert error message string concatenation to text block

Replace multi-line string concatenation with System.lineSeparator()
calls with a cleaner text block in DefaultExceptionHandler. The error
message for ArtifactFilteredOutException now uses Java text blocks
(triple-quoted strings) instead of the + operator, improving
readability and maintainability.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Code <claude@anthropic.com>
@gnodet gnodet merged commit cee05ae into apache:maven-4.0.x Jun 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

@gnodet Please assign appropriate label to PR according to the type of change.

@github-actions github-actions Bot added this to the 4.0.0-rc-6 milestone Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant