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

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

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
     Fix For: 2.0-beta-2


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


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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-900?page=all ]

Brett Porter updated MNG-900:
-----------------------------

    Attachment: MNG-900.diff

patch from Hiram

> 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
>      Fix For: 2.0-beta-2
>  Attachments: MNG-900.diff
>
>
> 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


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

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ 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


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

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-900?page=all ]

John Casey updated MNG-900:
---------------------------

    Remaining Estimate: 2 hours
     Original Estimate: 7200

I'd like to understand why locally-resolved artifacts have a remote repository set. beyond that, it should be a relatively quick patch.

> 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
>         Remaining: 2 hours
>
> 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