Skip to content

[MNG-7561] DefaultVersionRangeResolver should not try to resolve versions with same upper and lower bound #8890

@jira-importer

Description

@jira-importer

Konrad Windszus opened MNG-7561 and commented

For dependencies having e.g. version [1.0] the DefaultVersionRangeResolver still tries to resolve versions although only a single version (namely 1.0) is valid here according to https://maven.apache.org/pom.html#Dependency_Version_Requirement_Specification.
This leads in the worst case to long-running calls against a remote repository for no reason.

There should be a shortcut in

when the range has the same upper and lower bound.


Issue Links:

  • MNG-7106 VersionRange.toString() produces a string that cannot be parsed with VersionRange.createFromVersionSpec() for same lower and upper bounds

  • MENFORCER-427 Rule for no version ranges, version placeholders or SNAPSHOT versions

Remote Links:

Backported to: 4.0.0-alpha-3, 3.9.0, 3.8.9

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions