Maven 2.x Repository Plugin

301 permanently moved (not following redirect)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0, 2.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    maven 2.0.10 and 2.1.0
  • Number of attachments :
    0

Description

error: error reading /home/dimon/.m2/repository/org/apache/axis2/axis2-
kernel/1.4.1/axis2-kernel-1.4.1.jar; error in opening zip file
error: error reading
/home/dimon/.m2/repository/org/apache/neethi/neethi/2.0.4/neethi-2.0.4.jar;
error in opening zip file
error: error reading
/home/dimon/.m2/repository/org/apache/ws/commons/axiom/axiom-api/1.2.7/axiom-
api-1.2.7.jar; error in opening zip file
error: error reading
/home/dimon/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/1.2.7/axiom-
dom-1.2.7.jar; error in opening zip file
error: error reading /home/dimon/.m2/repository/org/codehaus/woodstox/wstx-
asl/3.2.4/wstx-asl-3.2.4.jar; error in opening zip file
error: error reading
/home/dimon/.m2/repository/org/apache/geronimo/specs/geronimo-stax-
api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar; error in opening zip
file
error: error reading /home/dimon/.m2/repository/commons-io/commons-
io/1.4/commons-io-1.4.jar; error in opening zip file

where the content of those "JARs" is :

<!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/org.apache.axis2/jars/axis2-
kernel-1.4.1.jar">here</a>.</p>
<hr>
<address>Apache Server at maven-repository.dev.java.net Port 443</address>
</body></html>

nuking files and re-running didn't help

Issue Links

Activity

Hide
Benjamin Bentmann added a comment -

This is issue is not specific to the plugin, the HTTP wagon provider used by most Maven versions doesn't support redirects between different schemes (cf. MNG-4428). Using Maven 2.2.0 for that particular operation or following the Guide to Selecting Alternative Wagon Providers should get you going.

Show
Benjamin Bentmann added a comment - This is issue is not specific to the plugin, the HTTP wagon provider used by most Maven versions doesn't support redirects between different schemes (cf. MNG-4428). Using Maven 2.2.0 for that particular operation or following the Guide to Selecting Alternative Wagon Providers should get you going.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: