Skip to content

Ability to augment metadata nature for version range request #1518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jul 4, 2025

The idea is to let caller be able to augment the nature of metadata to resolve version range from.

Resolver already handles this, and is more elegant, than to have caller fiddle with filtering the remote repositories or alike. Also, this way client code (ie. Maven) can expose more fine grained configuration for this.

The idea is to let caller be able to augment the nature of metadata to resolve version range from.

Resolver already handles this, and is more elegant, than to have caller fiddle with
filtering the remote repositories or alike. Also, this way client code (ie. Maven)
can expose more fine grained configuration for this.
@cstamas cstamas self-assigned this Jul 4, 2025
@cstamas cstamas marked this pull request as ready for review July 4, 2025 13:13
cstamas added a commit to cstamas/maven that referenced this pull request Jul 4, 2025
Ability to control which repositories to be queried to resolve
ranges. Introduced new property:

`maven.versionRangeResolutionNature` that is used in VersionRangeResolver,
and mean:
* 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

Depends on apache/maven-resolver#1518
@cstamas cstamas merged commit 490e16c into apache:maven-resolver-1.9.x Jul 7, 2025
11 checks passed
Copy link

github-actions bot commented Jul 7, 2025

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

Copy link

github-actions bot commented Jul 7, 2025

@cstamas The PR can't be associated to a milestone, because there are multiple open milestones. Please add the text "branch: maven-resolver-1.9.x" to the description to the milestone where this PR belongs to.

@cstamas
Copy link
Member Author

cstamas commented Jul 7, 2025

This will need Maven changes once this version is integrated

@cstamas cstamas added this to the 1.9.25 milestone Jul 7, 2025
@cstamas cstamas added the enhancement New feature or request label Jul 7, 2025
@cstamas cstamas deleted the maven-resolver-1.9.x-ability-to-augment-range-req branch July 7, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants