Maven pom resolving does not respect a 301 permanent redirect -------------------------------------------------------------
Key: MNG-4734 URL: http://jira.codehaus.org/browse/MNG-4734 Project: Maven 2 & 3 Issue Type: Bug Components: Dependencies Affects Versions: 2.2.1 Reporter: Graham Leggett When an attempt is made to depend upon the following dependency: com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.pom Instead of downloading the pom, a 301 Moved Permanently is saved in it's place. This breaks all maven builds on the particular machine: {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="http://download.java.net/maven/1/com.sun.tools.xjc.maven2/poms/maven-jaxb-plugin-1.1.pom">here</a>.</p> <hr> <address>Apache Server at maven-repository.dev.java.net Port 443</address> </body></html> {code} This looks like a regression since v2.2.0, as another machine running v2.2.0 downloads the pom for the above artifact correctly. This is what it looks like when it breaks: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: com.sun.tools.xjc.maven2:maven-jaxb-plugin POM Location: /home/chandler/minfrin/.m2/repository/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.pom Reason: Not a v4.0.0 POM. for project com.sun.tools.xjc.maven2:maven-jaxb-plugin at /home/chandler/minfrin/.m2/repository/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.pom -- 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