You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ashley Williams <ag...@mac.com> on 2005/10/08 00:24:41 UTC

[m2] unable to download from local repository

Hi

This question straddles both Maven and Apache and I'm hoping that  
someone who has experience creating a local repository from scratch  
can offer some assistance.

The problem is when I try to build a project, the jars fail to  
download correctly with the message:
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =  
'8133c6d39d1cc8cbb12441b5dbceb2d2'; remote =  
'10f8bc07b436d432b0ae64d21633e9c5' - IGNORING

The reason that I don't think the problem lies with Apache is that I  
already operate a svn repository from the same Apache server  
instance, although obviously I could be wrong. The pom files are  
downloaded fine but the jar files, as indicated by the error message,  
aren't and a jar tvf gives the following output:

   ....
   3044 Mon Oct 03 15:55:46 BST 2005 javax/xml/bind/helpers/ 
DefaultValidationEventHandler.class
   2792 Mon Oct 03 15:55:46 BST 2005 javax/xml/bind/helpers/ 
Messages.class
java.io.EOFException: Unexpected end of ZLIB input stream
         at java.util.zip.InflaterInputStream.fill 
(InflaterInputStream.java:215)
         at java.util.zip.InflaterInputStream.read 
(InflaterInputStream.java:134)
         at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
         at java.util.zip.ZipInputStream.closeEntry 
(ZipInputStream.java:91)
         at sun.tools.jar.Main.list(Main.java:744)
         at sun.tools.jar.Main.run(Main.java:192)
         at sun.tools.jar.Main.main(Main.java:904)

This happens consistently and I even changed to using mod_dav which  
gave the same results.

:/

For completeness here are my configs:
maven pom.xml...

         <repositories>
                 <repository>
                         <id>agwilliams1000</id>
                         <url>http://myserver/maven/repository</url>
                 </repository>
         </repositories>

apache httpd.conf...

Alias /maven/repository /Users/ashley/Webroot/maven/repository
<Directory /Users/ashley/Webroot/maven/repository>
     Options None
     AllowOverride None
     Order Allow,Deny
     Allow from all
</Directory>

Any ideas?

Thanks
AW

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] unable to download from local repository

Posted by Ashley Williams <ag...@mac.com>.
Just some advice for those (few) people in the same environment as me...

If you are setting up a repository with Mac OS X 10.4+ under Apache 2 
+ then an apache httpd bug truncates files that are more than 100KB  
to around 64KB and yet in the log files marks them as successfully  
sent (hard one to swallow for me)

I believe the only option is to stick with Apache 1.3.

I'm also hosting a subversion repository which _requires_ Apache 2.0,  
so I'm kinda stuck!

AW

On 7 Oct 2005, at 23:41, Ashley Williams wrote:

> Actually scratch that question, the problem is definitely apache- 
> only related as I can't even download the jar file correctly from  
> my browser. Over to httpd.apache.org...
>
> On 7 Oct 2005, at 23:24, Ashley Williams wrote:
>
>
>> Hi
>>
>> This question straddles both Maven and Apache and I'm hoping that  
>> someone who has experience creating a local repository from  
>> scratch can offer some assistance.
>>
>> The problem is when I try to build a project, the jars fail to  
>> download correctly with the message:
>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local  
>> = '8133c6d39d1cc8cbb12441b5dbceb2d2'; remote =  
>> '10f8bc07b436d432b0ae64d21633e9c5' - IGNORING
>>
>> The reason that I don't think the problem lies with Apache is that  
>> I already operate a svn repository from the same Apache server  
>> instance, although obviously I could be wrong. The pom files are  
>> downloaded fine but the jar files, as indicated by the error  
>> message, aren't and a jar tvf gives the following output:
>>
>>   ....
>>   3044 Mon Oct 03 15:55:46 BST 2005 javax/xml/bind/helpers/ 
>> DefaultValidationEventHandler.class
>>   2792 Mon Oct 03 15:55:46 BST 2005 javax/xml/bind/helpers/ 
>> Messages.class
>> java.io.EOFException: Unexpected end of ZLIB input stream
>>         at java.util.zip.InflaterInputStream.fill 
>> (InflaterInputStream.java:215)
>>         at java.util.zip.InflaterInputStream.read 
>> (InflaterInputStream.java:134)
>>         at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
>>         at java.util.zip.ZipInputStream.closeEntry 
>> (ZipInputStream.java:91)
>>         at sun.tools.jar.Main.list(Main.java:744)
>>         at sun.tools.jar.Main.run(Main.java:192)
>>         at sun.tools.jar.Main.main(Main.java:904)
>>
>> This happens consistently and I even changed to using mod_dav  
>> which gave the same results.
>>
>> :/
>>
>> For completeness here are my configs:
>> maven pom.xml...
>>
>>         <repositories>
>>                 <repository>
>>                         <id>agwilliams1000</id>
>>                         <url>http://myserver/maven/repository</url>
>>                 </repository>
>>         </repositories>
>>
>> apache httpd.conf...
>>
>> Alias /maven/repository /Users/ashley/Webroot/maven/repository
>> <Directory /Users/ashley/Webroot/maven/repository>
>>     Options None
>>     AllowOverride None
>>     Order Allow,Deny
>>     Allow from all
>> </Directory>
>>
>> Any ideas?
>>
>> Thanks
>> AW
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] unable to download from local repository

Posted by Ashley Williams <ag...@mac.com>.
Actually scratch that question, the problem is definitely apache-only  
related as I can't even download the jar file correctly from my  
browser. Over to httpd.apache.org...

On 7 Oct 2005, at 23:24, Ashley Williams wrote:

> Hi
>
> This question straddles both Maven and Apache and I'm hoping that  
> someone who has experience creating a local repository from scratch  
> can offer some assistance.
>
> The problem is when I try to build a project, the jars fail to  
> download correctly with the message:
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local  
> = '8133c6d39d1cc8cbb12441b5dbceb2d2'; remote =  
> '10f8bc07b436d432b0ae64d21633e9c5' - IGNORING
>
> The reason that I don't think the problem lies with Apache is that  
> I already operate a svn repository from the same Apache server  
> instance, although obviously I could be wrong. The pom files are  
> downloaded fine but the jar files, as indicated by the error  
> message, aren't and a jar tvf gives the following output:
>
>   ....
>   3044 Mon Oct 03 15:55:46 BST 2005 javax/xml/bind/helpers/ 
> DefaultValidationEventHandler.class
>   2792 Mon Oct 03 15:55:46 BST 2005 javax/xml/bind/helpers/ 
> Messages.class
> java.io.EOFException: Unexpected end of ZLIB input stream
>         at java.util.zip.InflaterInputStream.fill 
> (InflaterInputStream.java:215)
>         at java.util.zip.InflaterInputStream.read 
> (InflaterInputStream.java:134)
>         at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
>         at java.util.zip.ZipInputStream.closeEntry 
> (ZipInputStream.java:91)
>         at sun.tools.jar.Main.list(Main.java:744)
>         at sun.tools.jar.Main.run(Main.java:192)
>         at sun.tools.jar.Main.main(Main.java:904)
>
> This happens consistently and I even changed to using mod_dav which  
> gave the same results.
>
> :/
>
> For completeness here are my configs:
> maven pom.xml...
>
>         <repositories>
>                 <repository>
>                         <id>agwilliams1000</id>
>                         <url>http://myserver/maven/repository</url>
>                 </repository>
>         </repositories>
>
> apache httpd.conf...
>
> Alias /maven/repository /Users/ashley/Webroot/maven/repository
> <Directory /Users/ashley/Webroot/maven/repository>
>     Options None
>     AllowOverride None
>     Order Allow,Deny
>     Allow from all
> </Directory>
>
> Any ideas?
>
> Thanks
> AW
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org