You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/09/21 22:06:11 UTC

[jira] Closed: (MNG-900) snapshots without metadata are not resolved

     [ http://jira.codehaus.org/browse/MNG-900?page=all ]
     
John Casey closed MNG-900:
--------------------------

    Resolution: Fixed

it's possible that there may still be a problem when the artifact's metadata doesn't exist anywhere...hiram's patch addresses the symptom of the remote repository being set to the last one encountered (it's set for each successive repository when all metadata is empty, since merge() always returns false). I've annotated what I believe is the line causing trouble here, in DefaultRepositoryMetadataManager[92], as follows:

// NOTE: [jc; 21-sept-2005] won't this cause inconsistencies if the metadata wasn't found?
// this will write out an essentially empty metadata file, which will result
// in the loop below NOT merging anything (each successive pass is still empty),
// which means that the last repository will be set as the artifact repo, rather
// than leaving it null. This is the root cause of MNG-900, but I'm not sure how
// to fix it.

> snapshots without metadata are not resolved
> -------------------------------------------
>
>          Key: MNG-900
>          URL: http://jira.codehaus.org/browse/MNG-900
>      Project: Maven 2
>         Type: Bug
>   Components: maven-artifact
>     Versions: 2.0-beta-1
>     Reporter: Brett Porter
>     Assignee: John Casey
>      Fix For: 2.0-beta-2
>  Attachments: MNG-900.diff
>
> Original Estimate: 2 hours
>        Time Spent: 1 hour
>         Remaining: 0 minutes
>
> in particular, this is a problem for using legacy repositories built by m1

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org