GeezerVison is showing github.com — Introduce validation control by cstamas · Pull Request #12520 · apache/maven
Conversation
cstamas
commented
Jul 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Enables validation level choice in Maven Resolver validator.
This change should go to every Maven version having MavenValidator (3.10, 4.0 and 4.1).
Related: apache/maven-resolver#2007
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
HannesWell reacted with eyes emoji
This config is sourced from Java System Properties, as there
is no access to session.
Enables validation level in Maven Resolver validator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
Clean, well-scoped escape-hatch feature introducing configurable validation levels (maven.resolver.validation) for the Maven Resolver validator. The three levels (DEFAULT, MILD, OFF) are well-documented in Constants.java and accurately reflect the implementation. Default behavior is preserved, singleton pattern for validator instances is efficient, and the @since 3.10.0 tag is consistent with existing convention.
Two minor notes (non-blocking):
- No unit tests for the new
MavenValidator(boolean) constructor behavior — while the feature is simple, tests covering the three validation levels would improve confidence.
- The
ValidationLevel enum could be made package-private since MavenValidatorFactory is in the impl module.
This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.
Claude Code on behalf of gnodet
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 27, 2026
Reviewers
gnodet
gnodet approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.