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.
-
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.