[ 
http://jira.codehaus.org/browse/MVERSIONS-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=173666#action_173666
 ] 

Stephen Connolly commented on MVERSIONS-19:
-------------------------------------------

This is a strange one...

We ask the ArtifactMetadataSource to give us a list of available versions... 
that is this method:

http://maven.apache.org/ref/current/xref/org/apache/maven/project/artifact/MavenMetadataSource.html#495

This method creates a RepositoryMetadata object of type:

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.html#31

This metadata object is passed to the RepositoryMetadataManager:

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.html#58

Which asks the RepositoryMetadata object if it is a snapshot...

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.html#69

but our metadata object can never be a snapshot: 

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.html#81

So the end result is that we never look in non-release repositories... not sure 
if this is a Maven bug or if we should be using a different method.

> Repository enabled flag prevents identification
> -----------------------------------------------
>
>                 Key: MVERSIONS-19
>                 URL: http://jira.codehaus.org/browse/MVERSIONS-19
>             Project: Maven 2.x Versions Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-2
>         Environment: maven 2.1.0-M1
>            Reporter: Allan Shoup
>         Attachments: my-app-broken.zip, my-app-working.zip
>
>
> When a snapshot repository is included and the releases are disabled, the 
> plugin will not identify any snapshot dependencies from that repository (even 
> though snapshots are still enabled).
> <repository>
>     <id>my-snapshot-repository</id>
>     <name>My Snapshot Repository</name>
>     <url>http://my.repo/snapshot</url>
>     <releases>
>         <enabled>false</enabled>
>     </releases>
> </repository>

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to