Maven 1

Ibiblio Repository access that has items marked as '301: Moved permanently' causes maven to barf.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Maven 1.0.2 on Mac, Java build 1.5.0_06-113
  • Number of attachments :
    0

Description

To reproduce, refer to QDox trunk -

svn co https://svn.codehaus.org/qdox/trunk/

Try to build default goal for qdox/ module

If your setup is the same as mine, you get.......

WARNING: Failed to download ant-1.5.1.jar.
Attempting to download junit-3.8.1.jar.
Error retrieving artifact from http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar: java.io.IOException: Unknown error downloading; status code was: 301
WARNING: Failed to download junit-3.8.1.jar.
The build cannot continue because of the following unsatisfied dependencies:

ant-1.5.1.jar
junit-3.8.1.jar

Total time: 2 seconds
Finished at: Wed Jan 31 06:31:03 GMT 2007

WGET process differently for me ...

paul-hammants-computer:~/scm/oss/qdox/trunk/qdox paul$ wget http://www.ibiblio.org/maven/jmock/jars/jmock-1.0.0.jar
-06:31:17- http://www.ibiblio.org/maven/jmock/jars/jmock-1.0.0.jar
=> `jmock-1.0.0.jar'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.46.7.80]:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://mirrors.ibiblio.org/pub/mirrors/maven2/jmock/jmock/1.0.0/jmock-1.0.0.jar [following]
-06:31:17- http://mirrors.ibiblio.org/pub/mirrors/maven2/jmock/jmock/1.0.0/jmock-1.0.0.jar
=> `jmock-1.0.0.jar'
Resolving mirrors.ibiblio.org... done.
Connecting to mirrors.ibiblio.org[152.46.7.65]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 69,251 [text/plain]

100%[=============================================================================================>] 69,251 101.24K/s ETA 00:00

It could be that these forwards are sensitive to your TCP/IP location (I'm presently in Scotland)

Activity

Hide
Lukas Theussl added a comment -

See the news entry from 7 December 2006 on the main Maven 1.x site: http://maven.apache.org/maven-1.x/news.html

Show
Lukas Theussl added a comment - See the news entry from 7 December 2006 on the main Maven 1.x site: http://maven.apache.org/maven-1.x/news.html
Hide
Trenton added a comment - - edited

I am seeing this on multiple JARs. I've been using them for awhile now, and they are fine on my system, but when one of our sys-admins tries to build my software, it pukes. It seems like maven doesn't know how to follow HTTP response codes.

HttpURLConnection.setFollowRedirects(true) might help.

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

Show
Trenton added a comment - - edited I am seeing this on multiple JARs. I've been using them for awhile now, and they are fine on my system, but when one of our sys-admins tries to build my software, it pukes. It seems like maven doesn't know how to follow HTTP response codes. HttpURLConnection.setFollowRedirects(true) might help. 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
Hide
Trenton added a comment -

> See the news entry from 7 December 2006 on the main
> Maven 1.x site: http://maven.apache.org/maven-1.x/news.html

The work around does not work for me. I put it in project properties as well as settings.xml properties in an active profile.

Show
Trenton added a comment - > See the news entry from 7 December 2006 on the main > Maven 1.x site: http://maven.apache.org/maven-1.x/news.html The work around does not work for me. I put it in project properties as well as settings.xml properties in an active profile.
Hide
Trenton added a comment - - edited

Oh, oops, this is happening on 2.0.10 for me by the way, as well as 2.1.0.

Sorry, didn't notice this was an old bug, as it said Jan 7.

Show
Trenton added a comment - - edited Oh, oops, this is happening on 2.0.10 for me by the way, as well as 2.1.0. Sorry, didn't notice this was an old bug, as it said Jan 7.
Hide
Carlos Sanchez added a comment -

see MNG-4428

Show
Carlos Sanchez added a comment - see MNG-4428

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: