Skip to content

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Jul 7, 2025

Ability to control which repositories to be queried to resolve ranges. Introduced new property: (#2575)

Ability to control which repositories to be queried to resolve ranges. Introduced new property: maven.versionRangeResolver.natureOverride that is used in VersionRangeResolver, and means:

  • not set; behave as before (default)
  • "auto" string; will check lower and upper bounds, and if any is snapshot, will querty snapshot reposes otherwise not
  • any valid value of resolver Metadata.Nature enum; then will use that

Fixes: #2558
Backport of master 37b0699

Ability to control which repositories to be queried to resolve ranges. Introduced new property: (apache#2575)

Ability to control which repositories to be queried to resolve ranges. Introduced new property: `maven.versionRangeResolver.natureOverride` that is used in VersionRangeResolver, and means:
* not set; behave as before (default)
* "auto" string; will check lower and upper bounds, and if any is snapshot, will querty snapshot reposes otherwise not
* any valid value of resolver Metadata.Nature enum; then will use that

Fixes: apache#2558
Backport of master 37b0699
@cstamas cstamas added this to the 4.0.0 milestone Jul 7, 2025
@cstamas cstamas requested a review from gnodet July 7, 2025 11:11
@cstamas cstamas self-assigned this Jul 7, 2025
@cstamas cstamas marked this pull request as ready for review July 7, 2025 11:11
@cstamas cstamas merged commit 7deffd2 into apache:maven-4.0.x Jul 7, 2025
1 check passed
@cstamas cstamas deleted the maven-4.0.x-range-resolution branch July 7, 2025 11:12
@gnodet gnodet added enhancement New feature or request mvn40 and removed backport-to-4.0.x labels Oct 10, 2025
@gnodet gnodet changed the title Augment version range resolution used repositories (backport) Allow configurable repository selection for version range resolution (backport) Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport enhancement New feature or request mvn40

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants