[
https://issues.apache.org/jira/browse/MNG-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16918177#comment-16918177
]
Bex Warner commented on MNG-4816:
---------------------------------
Just a bump here; opened https://issues.apache.org/jira/browse/MNG-6749 to
hopefully get this addressed in Maven 3!
> Maven 3 fails to follow 301 redirects
> -------------------------------------
>
> Key: MNG-4816
> URL: https://issues.apache.org/jira/browse/MNG-4816
> Project: Maven
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 3.0-beta-3
> Environment: JDK 6u21, Ubuntu.
> Reporter: Jesse Glick
> Priority: Major
>
> See https://netbeans.org/bugzilla/show_bug.cgi?id=190033 for steps to
> reproduce, and in particular delete
> ~/.m2/repository/org/codehaus/mojo/archetypes/webapp-javaee6/1.1/webapp-javaee6-1.1.jar
> first. Maven 2.2.1 works; 3.0-beta-3 fails. The difference is that M3 tries
> to download this JAR but the HTTP transport does not handle redirects, so the
> JAR file in the local repo is actually a text file:
> {code}
> <!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="https://nexus.codehaus.org/content/repositories/releases/org/codehaus/mojo/archetypes/webapp-javaee6/1.1/webapp-javaee6-1.1.jar">here</a>.</p>
> <hr>
> <address>Apache/2.0.52 (Red Hat) Server at repository.codehaus.org Port
> 80</address>
> </body></html>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)