Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.0-beta-3
-
None
-
None
-
JDK 6u21, Ubuntu.
Description
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:
<!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>