You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Trenton (JIRA)" <ji...@codehaus.org> on 2010/01/12 02:00:55 UTC

[jira] Issue Comment Edited: (MAVEN-1831) Ibiblio Repository access that has items marked as '301: Moved permanently' causes maven to barf.

    [ http://jira.codehaus.org/browse/MAVEN-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206525#action_206525 ] 

Trenton edited comment on MAVEN-1831 at 1/11/10 7:00 PM:
---------------------------------------------------------

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 :(

      was (Author: trent):
    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...

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 :(
  
> Ibiblio Repository access that has items marked as '301: Moved permanently' causes maven to barf.
> -------------------------------------------------------------------------------------------------
>
>                 Key: MAVEN-1831
>                 URL: http://jira.codehaus.org/browse/MAVEN-1831
>             Project: Maven 1
>          Issue Type: Bug
>         Environment: Maven 1.0.2 on Mac, Java build 1.5.0_06-113
>            Reporter: Paul Hammant
>
> 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)

-- 
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