Details
-
Type:
Task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0-beta-1
-
Fix Version/s: None
-
Component/s: Standard Rules
-
Labels:None
-
Number of attachments :
Description
The fix for MNG-3092 affects also certain Enforcer rules that deal with version ranges. We need to review which rules are intended to match core's dependency resolution semantics and which rules deliberately want to include snapshots in version ranges. For instance, the rule RequireMavenVersion in combination with a range like [2.0.9,) now fails when run with Maven 3.0-SNAPSHOT which is counter-intuitive in this case.
Issue Links
- is related to
-
MRELEASE-216
Release plugin should ignore SNAPSHOTS that are not specified in the POM
-
-
MNG-3092
Version ranges with non-snapshot bounds can contain snapshot versions
-
-
MENFORCER-101
Enforcer does not allow to restrict based on SNAPSHOT version as version comparison uses artifact.getVersion() instead of artifact.getBaseVersion()
-
- relates to
-
MNG-4751
Snapshot version not resolved for version range
-
Activity
| Link | This issue is related to MRELEASE-216 [ MRELEASE-216 ] |
| Link |
This issue is related to |
perhaps the version range algorithm should accept every snapshots when no upper-bound limit is set: when a range does not precisely know its target version, this snapshot restrictions can't apply
this would fix this precise case where version ranges are used for RequireMavenVersion rule, I don't know if this would be ok for other use