Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.11, 2.2.1, 3.0-beta-3
-
Fix Version/s: 3.x / Backlog
-
Component/s: Artifacts and Repositories
-
Labels:None
-
Complexity:Intermediate
-
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.
Issue Links
Activity
| Project | Maven Wagon [ 10335 ] | Maven 2 & 3 [ 10500 ] |
| Key | WAGON-315 | MNG-4838 |
| Affects Version/s | 3.0-beta-3 [ 16681 ] | |
| Affects Version/s | 2.2.1 [ 15328 ] | |
| Affects Version/s | 2.0.11 [ 14118 ] | |
| Affects Version/s | 1.0-beta-6 [ 15403 ] | |
| Component/s | Artifacts and Repositories [ 11338 ] | |
| Component/s | wagon-http-lightweight [ 12152 ] | |
| Fix Version/s | 3.0.1 [ 16331 ] | |
| Fix Version/s | 1.0-beta-7 [ 15972 ] | |
| Complexity | Intermediate |
| Fix Version/s | 3.x / Backlog [ 16138 ] | |
| Fix Version/s | 3.0.1 [ 16331 ] |
requires a Wagon release to fix, see linked issue