Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0.6
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:XP Pro SP2
-
Complexity:Intermediate
-
Patch Submitted:Yes
-
Number of attachments :
Description
Similar to MRELEASE-134 in maven-release-plugin
<dependency>
<groupId>myGroup</groupId>
<artifactId>myArtifact</artifactId>
<version>[1.0,)</version>
</dependency>
This version range can resolve to the latest development SNAPSHOT. All artifact dependencies should ignore SNAPSHOTS as that is not intended by the unbounded high end of the version range. This should resolve to any released version of 1.1 or higher.
This document:
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges
addressed the requirements for version ranges and stated that "Resolution of dependency ranges should not resolve to a snapshot (development version) unless it is included as an explicit boundary". I think this requirement was forgotten when version ranges were implemented.
Issue Links
- is duplicated by
-
MNG-3001
Maven2 does not resolve version ranges correctly [PATCH INCLUDED]
-
- is related to
-
MASSEMBLY-208
Assembly plugin does not resolve version ranges correctly
-
-
MNG-3109
version ranges can include snapshots
-
-
MNG-2431
Make it possible to specify that version should be the LATEST STABLE available
-
Oops, the title should have been "Maven plugin(s) do not resolve version ranges correctly."
The assembly plug-in is one, others are idea and dependency, ... I believe the release plug-in trunk has it fixed but none of its releases do.