[
http://jira.codehaus.org/browse/MNG-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96454
]
Mark Hobson commented on MNG-2994:
----------------------------------
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.
> Snapshot repositories are not checked when using ranges
> -------------------------------------------------------
>
> Key: MNG-2994
> URL: http://jira.codehaus.org/browse/MNG-2994
> Project: Maven 2
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 2.0.6
> Environment: Windows XP, Cygwin
> Reporter: Mark Hobson
> Attachments: patch.txt
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira