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 #12520 · apache/maven

Conversation

@cstamas

@cstamas cstamas commented Jul 22, 2026 •
edited
Loading

Uh oh!

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

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

Sorry, something went wrong.

Uh oh!

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

HannesWell reacted with eyes emoji
All reactions
  • 👀 1 reaction
@cstamas
Introduce validation control
49faea5
This config is sourced from Java System Properties, as there
is no access to session.

Enables validation level in Maven Resolver validator.
@cstamas cstamas added this to the 4.1.0 milestone Jul 22, 2026
@cstamas
cstamas requested review from gnodet and slawekjaranowski July 22, 2026 09:21
@cstamas cstamas self-assigned this Jul 22, 2026
@cstamas cstamas added the enhancement New feature or request label Jul 22, 2026
@cstamas
Simplify
c3dc5cb
@cstamas
cstamas marked this pull request as ready for review July 22, 2026 13:12
gnodet
gnodet approved these changes Jul 24, 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.

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.

All reactions
gnodet
gnodet approved these changes Jul 24, 2026
View reviewed changes
@cstamas
cstamas merged commit 5703b7d into apache:master Jul 27, 2026
22 checks passed

Uh oh!

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

@cstamas
cstamas deleted the validation-control branch July 27, 2026 17:42
This was referenced Jul 27, 2026
Introduce validation control #12549
Merged
Introduce validation control #12548
Merged
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
@slawekjaranowski slawekjaranowski Awaiting requested review from slawekjaranowski

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

4.2.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.