You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthew McCullough (JIRA)" <ji...@codehaus.org> on 2010/05/12 20:21:12 UTC

[jira] Created: (MNG-4673) Failure to download artifact stores & inspects HTTP response code

Failure to download artifact stores & inspects HTTP response code
-----------------------------------------------------------------

                 Key: MNG-4673
                 URL: http://jira.codehaus.org/browse/MNG-4673
             Project: Maven 2 & 3
          Issue Type: Improvement
          Components: Artifacts and Repositories
    Affects Versions: 3.0-beta-1
            Reporter: Matthew McCullough
            Priority: Minor


When an artifact is unable to be downloaded, Maven 3 caches this result for future reference in the "~/.m2/repo/.../<artifact>.lastUpdated" file.  For "not found" situations, it seems that the HTTP code could be used to more granularly re-attempt retrieval rather than just cache the failure.

For example, for any 404, I agree, the result should cache the failure and require a -U to attempt to retrieve it again.  However, for 400, 500, 501, 502, 503, 301, 302 (what's the Maven behavior for 3xx today?) I think the resolution engine should try to re-retrieve the artifact each time.  With those error codes, it seems more likely a config issue or brief network hiccup, not one of the file being absent from that repo.  However, that brief network hiccup has longstanding cache implications in that the file is never attempted to be retrieved again.

http://www.w3.org/Protocols/HTTP/HTRESP.html

I've received this feedback from folks trying out Maven 3 Beta 1 and am just trying to aggregate the comments on their behalf.

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

        

[jira] Closed: (MNG-4673) Failure to download artifact stores & inspects HTTP response code

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4673.
----------------------------------

    Resolution: Duplicate
      Assignee: Benjamin Bentmann

> Failure to download artifact stores & inspects HTTP response code
> -----------------------------------------------------------------
>
>                 Key: MNG-4673
>                 URL: http://jira.codehaus.org/browse/MNG-4673
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0-beta-1
>            Reporter: Matthew McCullough
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>
> When an artifact is unable to be downloaded, Maven 3 caches this result for future reference in the "~/.m2/repo/.../<artifact>.lastUpdated" file.  For "not found" situations, it seems that the HTTP code could be used to more granularly re-attempt retrieval rather than just cache the failure.
> For example, for any 404, I agree, the result should cache the failure and require a -U to attempt to retrieve it again.  However, for 400, 500, 501, 502, 503, 301, 302 (what's the Maven behavior for 3xx today?) I think the resolution engine should try to re-retrieve the artifact each time.  With those error codes, it seems more likely a config issue or brief network hiccup, not one of the file being absent from that repo.  However, that brief network hiccup has longstanding cache implications in that the file is never attempted to be retrieved again.
> http://www.w3.org/Protocols/HTTP/HTRESP.html
> I've received this feedback from folks trying out Maven 3 Beta 1 and am just trying to aggregate the comments on their behalf.

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