Ability to augment metadata nature for version range request by cstamas · Pull Request #1518 · apache/maven-resolver

@cstamas

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

slawekjaranowski

@cstamas cstamas deleted the maven-resolver-1.9.x-ability-to-augment-range-req branch

July 7, 2025 13:08