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 — Backport #12505: mvnup: widen exact Maven version pins to allow Maven 4 by gnodet · Pull Request #12508 · apache/maven

Conversation

@gnodet

@gnodet gnodet commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Backport of fix: mvnup: widen exact Maven version pins to allow Maven 4 #12505 to maven-4.0.x
  • Adds UPPER_BOUND_BELOW_MAVEN4 pattern to EnforcerVersionRangeStrategy to handle exact version pins like [3.8.6,3.8.6] and sub-4 upper bounds like [3.8.0,3.9), widening them to [lower,5)
  • Fixes Apache Flink compatibility (RequireMavenVersion [3.8.6,3.8.6] was blocking Maven 4)

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@gnodet @claude
fix: mvnup: widen exact Maven version pins to allow Maven 4 (apache#1…
162b49b
…2505)

Projects like Apache Flink pin their Maven version to an exact version
using ranges like [3.8.6,3.8.6] (both bounds equal, both inclusive).
The existing MAVEN4_EXCLUSIVE_UPPER_BOUND pattern only matched ranges
with an exclusive upper bound at 4.x (e.g. [3.8.8,4)), so exact pins
and ranges with an upper bound below 4 were silently skipped.

Add a new UPPER_BOUND_BELOW_MAVEN4 pattern that catches any version
range whose upper bound has a major version less than 4. This covers:
- Exact version pins: [3.8.6,3.8.6] -> [3.8.6,5)
- Sub-4 upper bounds: [3.8.0,3.9) -> [3.8.0,5)
- Unbounded lower ranges: (,3.9] -> (,5)

Co-authored-by: Claude Opus 4.6 <[email protected]>
gnodet
gnodet commented Jul 20, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor Author

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.

Review: Backport #12505 to maven-4.0.x

Clean cherry-pick of #12505 — diff is identical. The EnforcerVersionRangeStrategy changes and all 6 tests apply cleanly to maven-4.0.x.

Same assessment as the master PR: correct regex design, safe getMajorVersion fallback, comprehensive test coverage including integration test for exact version pins in enforcer configuration.

Real-world impact: fixes Apache Flink compatibility where RequireMavenVersion [3.8.6,3.8.6] was blocking Maven 4.

CI: initial-build pending (just started). Code is identical to #12505 which passed all CI.

LGTM.


Reviewed with Claude Code on behalf of Guillaume Nodet. This review was generated by an AI agent and may contain inaccuracies; please verify all suggestions before applying.

Sorry, something went wrong.

Uh oh!

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

All reactions
@gnodet
gnodet merged commit c6d4fe9 into apache:maven-4.0.x Jul 20, 2026
22 checks passed

Uh oh!

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

@github-actions github-actions Bot assigned gnodet Jul 20, 2026
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added this to the 4.0.0-rc-6 milestone Jul 20, 2026
@gnodet gnodet added the enhancement New feature or request label Jul 24, 2026
@gnodet
gnodet deleted the backport/12505-mvnup-exact-version-pin branch October 26, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

@gnodet gnodet

Labels

enhancement New feature or request

Projects

None yet

Milestone

4.0.0-rc-6

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

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