Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.6
-
Fix Version/s: 3.0-beta-1
-
Component/s: Artifacts and Repositories
-
Labels:None
-
Environment:Windows XP, Cygwin
-
Complexity:Intermediate
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
The attached patch demonstrates the problem by adding it0121. If the test repository has releases enabled, the test passes, when they are disabled, the test fails. This appears to be due to DefaultArtifact.isSnapshot returning false for unresolved ranges, thus causing snapshot repositories to be disabled when resolving artifacts.
Issue Links
- depends upon
-
MNG-3092
Version ranges with non-snapshot bounds can contain snapshot versions
-
- is duplicated by
-
MNG-2525
SNAPSHOT dependencies aren't found when repository has 'release' disabled and a version range is used
-
-
MNG-4295
version ranges are not resolved from snapshot only repositories
-
- is related to
-
MRELEASE-177
generateReleasePoms does not work
-
- relates to
-
MNG-3376
plugin repositories are not checked when looking for snapshot plugin.
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue is related to |
| Patch Submitted | [Yes] |
| Assignee | Jason van Zyl [ jason ] |
| Patch Submitted | [Yes] |
| Attachment | MNG-2994-2.patch [ 27835 ] |
| Fix Version/s | Reviewed [ 13555 ] |
| Attachment | MNG-2994-3.patch [ 28284 ] |
| Attachment | MNG-2994-core-it.patch [ 28285 ] |
| Patch Submitted | [Yes] |
| Affects Version/s | 2.0.10 [ 14112 ] | |
| Affects Version/s | 2.0.6 [ 13010 ] |
| Fix Version/s | Reviewed Pending Version Assignment [ 13555 ] | |
| Affects Version/s | 2.0.10 [ 14112 ] | |
| Affects Version/s | 2.0.6 [ 13010 ] | |
| Fix Version/s | 2.0.10 [ 14112 ] |
| Fix Version/s | 2.0.11 [ 14118 ] | |
| Fix Version/s | 2.0.10 [ 14112 ] |
| Fix Version/s | 2.0.11 [ 14118 ] | |
| Fix Version/s | 2.2.1 [ 15328 ] |
| Fix Version/s | 2.2.1 [ 15328 ] | |
| Fix Version/s | 2.2.2 [ 15472 ] |
| Fix Version/s | 3.0-alpha-7 [ 16087 ] | |
| Fix Version/s | 2.2.2 [ 15472 ] |
| Fix Version/s | 3.0-alpha-8 [ 16088 ] | |
| Fix Version/s | 3.0-alpha-7 [ 16087 ] |
| Fix Version/s | 3.0-beta-1 [ 16089 ] | |
| Fix Version/s | 3.0-alpha-8 [ 16088 ] |
| Assignee | Jason van Zyl [ jason ] | Benjamin Bentmann [ bentmann ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
After stepping through, it's actually ArtifactRepositoryMetadata.isSnapshot always returning false when queried by DefaultRepositoryMetadataManager.resolve. In turn, this is called by MavenMetadataSource.retrieveAvailableVersions from DefaultArtifactCollector.recurse when artifact.getVersion() == null, i.e. when ranges are being used.