cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading snapshots from maven repository using IVY fails

thilka
Champ in-the-making
Champ in-the-making
Hello everyone,

we tried to integrate activiti into our project using apache ivy as dependency management tool. The repository URL is valid, the download starts, but then it fails due to some wrong checksum:
      [FAILED     ] org.activiti#activiti-engine;5.0.alpha4!activiti-engine.jar: invalid sha1: expected=b9c7a1d06441eb77880b40d8dd339d74784275a8 computed=97b79d259c6df6e2cf1acd238d3ab1891d88d6e2 (970ms)

I saw some other post about a similar issue for alpha2, but the problem still seems to be there. Are there any known issues with the public repository entries for alpha4?

Would be great to integrate activiti using IVY.

Thanks,

Tobias
6 REPLIES 6

tombaeyens
Champ in-the-making
Champ in-the-making
I like ivy a lot too.  I can't promise anything, but I will look into this.

Anyone else know what's causing this?

jbarrez
Star Contributor
Star Contributor
It appears that the version we currently are using (2.2.0) creates invalid checksums:

http://maven.apache.org/release-notes-all.html
MNG-4235 - [regression] Maven 2.2.0 produces invalid checksums during deployment to secured HTTP repo

The issue seems to be fixed in version 2.2.1. The only solution we have is to upgrade the maven version and re-upload all old artifacts.

mindthegab_2098
Champ in-the-making
Champ in-the-making
Hey guys,
I'm not an Ivy expert, but a temporary solution which might work (prior to redeployment of artifacts with Maven 2.2.1)
could be disabling checksum validation globally in Ivy (as per http://ant.apache.org/ivy/history/2.0.0-alpha2/concept.html) by setting

ivy.checksums=""
Just a possible workaround, did not test it myself.

thilka
Champ in-the-making
Champ in-the-making
Hi,

the ivy.checksums="" pointed to the right direction. I changed our ivy resolver:
<ibiblio name="activitirepo" m2compatible="true" checksums=""
         root="http://maven.alfresco.com/nexus/content/repositories/activiti/"
         pattern="[organization]/[module]/[revision]/[artifact]-[revision].[ext]" />

Now, everything works properly.

Thanks for your help.

thilka
Champ in-the-making
Champ in-the-making
Hello again,

is it also possible to publish the source zip (and maybe the javadoc) to the public repository, so we can download it directly using ivy? Would be great.

tombaeyens
Champ in-the-making
Champ in-the-making
added publication of sources and javadocs to the wishlist ideas in the roadmap: http://docs.codehaus.org/display/ACT/Roadmap