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

Jesse Glick commented on MNG-4816:
----------------------------------

Complete test case, for reference (works in M2 and fails in M3):

{noformat}
rm -rf ~/.m2/repository/org/codehaus/mojo/archetypes test-MNG-4816
mvn -DarchetypeVersion=1.1 -Darchetype.interactive=false -DgroupId=test 
-DarchetypeArtifactId=webapp-javaee6 
-DarchetypeRepository=http://repository.codehaus.org -Dversion=1.0-SNAPSHOT 
-DarchetypeGroupId=org.codehaus.mojo.archetypes -Dpackage=test 
-DartifactId=test-MNG-4816 --batch-mode --debug 
org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5:generate
{noformat}

> Maven 3 fails to follow 301 redirects
> -------------------------------------
>
>                 Key: MNG-4816
>                 URL: http://jira.codehaus.org/browse/MNG-4816
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0-beta-3
>         Environment: JDK 6u21, Ubuntu.
>            Reporter: Jesse Glick
>
> 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 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