Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 3.0-beta-1
-
Fix Version/s: 3.0
-
Component/s: Dependencies
-
Labels:None
-
Environment:linux x86_64, sun java 1.6.0_14
-
Complexity:Intermediate
-
Testcase included:yes
-
Number of attachments :
Description
Even with a snapshot dependency in the pom, a release version is included in the classpath for compilation.
This happens when a mid-level dependency and the top-level project both depend on the same artifact. The mid-level dependency selects a range of valid versions which includes the snapshot version and the top-level project depends explicitly on the snapshot version.
This is a regression from 2.2.1
To reproduce:
1. Release/deploy/install v1.0 of tlib
2. deploy v1.1-SNAPSHOT of tlib
3. Release/deploy/install v1.0 of tlib2
4. Try to compile tapp
Issue Links
- is related to
-
MNG-3092
Version ranges with non-snapshot bounds can contain snapshot versions
-
-
MENFORCER-94
Review evaluation of version ranges with regard to inclusion of snapshots
-
Activity
| Summary | Snapshot version not resolved | Snapshot version not resolved for version range |
| Link | This issue is related to MENFORCER-94 [ MENFORCER-94 ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Benjamin Bentmann [ bentmann ] | |
| Fix Version/s | 3.0-beta-4 [ 16712 ] | |
| Resolution | Fixed [ 1 ] |
| Fix Version/s | 3.0 [ 13142 ] | |
| Fix Version/s | 3.0-beta-4 [ 16712 ] |
I found a workaround, I'm not sure that this is the intended behavior but if you make the snapshot a single inclusive range then it works.
in tapp/pom.xml:
<dependency>
<groupId>org.tlib</groupId>
<artifactId>tlib</artifactId>
<version>[1.1-SNAPSHOT]</version>
</dependency>