[ 
http://jira.codehaus.org/browse/MNG-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=205890#action_205890
 ] 

Steve Kuo edited comment on MNG-4428 at 1/8/10 3:00 PM:
--------------------------------------------------------

This should be major priority. Basically if any repository returns HTTP 301 
Moved, then Maven blindly copies the moved HTML as a JAR (an obvious bug). The 
result is that the build is broken. I've had to edit my settings.xml and create 
a local repository with manually downloaded JARs - a major pain. See also 
http://jira.codehaus.org/browse/MEV-649

      was (Author: stevekuo):
    This should be major priority. Basically if any repository returns HTTP 301 
Moved, then Maven blindly copies the moved HTML as a JAR. The result is that 
the build is broken. I've had to edit my settings.xml and create a local 
repository with manually downloaded JARs - a major pain. See also 
http://jira.codehaus.org/browse/MEV-649
  
> Permament move (error 301) not handled properly by Maven
> --------------------------------------------------------
>
>                 Key: MNG-4428
>                 URL: http://jira.codehaus.org/browse/MNG-4428
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.2.1
>            Reporter: Grzegorz Slowikowski
>            Priority: Minor
>
> Artifact cannot be downloaded by http-lightweight-wagon used (as default) in 
> all Maven versions except 2.2.0, which uses http-wagon by default.
> Instead of pom and jar files html files appear in the local repo with content 
> like:
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>301 Moved Permanently</title>
> </head><body>
> <h1>Moved Permanently</h1>
> <p>The document has moved <a 
> href="http://download.java.net/maven/2/org/codehaus/castor/castor-xml-schema/1.2/castor-xml-schema-1.2.pom";>here</a>.</p>
> <hr>
> <address>Apache Server at maven2-repository.dev.java.net Port 443</address>
> </body></html>
> Only Maven 2.2.0 handles 301 properly.
> By the way, I haven't expected such Apache configuration (permament move) in 
> central Maven repo.
> As you can see this is not handled properly by almost all versions of Maven.

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

        

Reply via email to