Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-6
-
Fix Version/s: 2.0
-
Component/s: wagon-http-lightweight
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
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.
Attachments
Issue Links
| This issue is duplicated by: | ||||
| MNG-4524 | Error while installing dependencies |
|
|
|
| MNG-4486 | Maven appears to ignore http 301; downloads html as jar |
|
|
|
| MREPOSITORY-20 | 301 permanently moved (not following redirect) |
|
|
|
| MNG-4734 | Maven pom resolving does not respect a 301 permanent redirect |
|
|
|
| MNG-4816 | Maven 3 fails to follow 301 redirects |
|
|
|
| MNG-4817 | Unable to use gwt-maven-plugin 1.3-SNAPSHOT |
|
|
|
| This issue relates to: | ||||
| MNG-4448 | Create IT to check for support of HTTP redirects |
|
|
|
| MANTTASKS-176 | Maven Ant Tasks doesn't follow HTTP redirects |
|
|
|
| WAGON-283 | Maven 2.2.0 fails to follow redirects when deploying artifacts via HTTP |
|
|
|
| MEV-649 | log4j 1.2.15 points to nonfuctional maven-repository.dev.java.net packages breaking whole build |
|
||
| MARCHETYPES-36 | Version 1.1. of the web and EE archetypes broken |
|
|
|
| WAGON-284 | Artifacts are uploaded twice in the case of HTTP redirection |
|
|
|
| This issue is related to: | ||||
| CARGO-840 | Cargo 1.0.2 (possibly also earlier releases) don't work with Maven since the migration to the new Codehaus repo |
|
|
|
| This issue is depended upon by: | ||||
| MNG-4838 | Permament move (error 301) not handled properly by Maven |
|
|
|
As a side note, the central Maven repository is repo1.maven.org, not "Apache Server at maven2-repository.dev.java.net Port 443".