GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Introduce validation control by cstamas · Pull Request #12549 · apache/maven

Conversation

@cstamas

@cstamas cstamas commented Jul 27, 2026

Copy link
Copy Markdown
Member

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

Backport of: 5703b7d

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cstamas
Introduce validation control
5539051
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

Backport of: 5703b7d
@cstamas cstamas added this to the 3.10.0 milestone Jul 27, 2026
@cstamas cstamas self-assigned this Jul 27, 2026
@cstamas cstamas added the enhancement New feature or request label Jul 27, 2026
@cstamas
cstamas marked this pull request as ready for review July 27, 2026 18:33
gnodet
gnodet approved these changes Jul 27, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

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.

✅ Clean backport of merged PR #12520 (commit 5703b7d) to the maven-3.10.x branch.

The changes are minimal and correctly adapted for the 3.10.x branch:

  • Traditional switch statement instead of switch expression (Java compatibility)
  • javax.inject imports instead of org.apache.maven.api.di
  • Config key defined as a local constant rather than referencing Constants.MAVEN_RESOLVER_VALIDATION (which doesn't exist on 3.10.x)
  • Source files under maven-core/ rather than impl/maven-impl/

The offValidator = new Validator() {} pattern is correct — all five methods on the Validator interface are default methods, so the anonymous class produces a complete no-op validator.

Note: The same case-sensitivity concern from the maven-4.0.x companion PR (#12548) applies here — ConfigUtils.getEnum uses Enum.valueOf which is case-sensitive, but the documented values are lowercase. See the review on #12548 for details.

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.

All reactions
@gnodet gnodet mentioned this pull request Jul 27, 2026
Introduce validation control #12548
Merged
gnodet added a commit to gnodet/maven that referenced this pull request Jul 27, 2026
@gnodet
Update state after run 96 - reviewed PRs apache#12547, apache#12548, a…
d9d9659
…pache#12549
@cstamas
cstamas merged commit 2bc0aea into apache:maven-3.10.x Jul 27, 2026
18 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@cstamas
cstamas deleted the maven-3.10.x-validation-control branch July 27, 2026 19:03
@cmunier cmunier mentioned this pull request Oct 11, 2026
Accept documented lowercase values for maven.resolver.validation #13407
Merged
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gnodet gnodet gnodet approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@cstamas cstamas

Labels

enhancement New feature or request

Projects

None yet

Milestone

3.10.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@cstamas @gnodet
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.