ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: Ivy confused about sha1 vs md5 checksums?
Date Thu, 30 Jun 2011 21:28:54 GMT
My guess is that http://devmaster:8081/nexus/content/groups/public/commons-io/commons-io/1.4/commons-io-1.4.sha1
doesn't return an HTTP 404, but a nice looking html saying the resource doesn't exist?

Maarten



________________________________
From: Jim Garrison <jim.garrison@troux.com>
To: "ivy-user@ant.apache.org" <ivy-user@ant.apache.org>
Sent: Thursday, June 30, 2011 11:16 PM
Subject: Ivy confused about sha1 vs md5 checksums?

We just started getting the following error when resolving from a local repository:

[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]           [FAILED     ] commons-io#commons-io;1.4!commons-io.jar: invalid
sha1: expected=<!doctype computed=a8762d07e76cfde2395257a5da47ba7c1dbd3dce (827ms)
[ivy:resolve]           [FAILED     ] commons-io#commons-io;1.4!commons-io.jar: invalid
sha1: expected=<!doctype computed=a8762d07e76cfde2395257a5da47ba7c1dbd3dce (827ms)
[ivy:resolve]   ==== public: tried
[ivy:resolve]    http://devmaster:8081/nexus/content/groups/public/commons-io/commons-io/1.4/commons-io-1.4.jar

devmaster is a local caching Nexus server.

commons-io.jar has only md5 checksums in Maven Central, not sha1.  I purged the locally cached
copy from devmaster and tried again but got the same error.

After a little digging through the Ivy docs, I added the following line to ivysettings.xml:

      <property name="ivy.checksums" value="md5,sha1"/>

to force Ivy to try md5 first, which fixed the problem.

It looks like Ivy is somehow being fooled into thinking it needs to verify an sha1 sum when
no such checksum exists.  Known problem?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message