Hi Steve,

Your help is much appreciated.

Turns out that all the problems that I had were proxy related. I had to 
explicitly provide the proxy configuration (host/port) to Ant. (though I 
already have been using ivy-2.3.0,  IVY-1194 was a good tip!)

That solved everything.

Thanks again,

Shahar.

-----Original Message-----
From: Steve Rowe [mailto:sar...@gmail.com] 
Sent: Thursday, April 25, 2013 4:50 PM
To: solr-user@lucene.apache.org
Subject: Re: Preparing Solr 4.2.1 for IntelliJ fails - invalid sha1

Hi Shahar,

I suspect you may have an older version of Ivy installed - the errors you're 
seeing look like IVY-1194 <https://issues.apache.org/jira/browse/IVY-1194>, 
which was fixed in Ivy 2.2.0.  Lucene/Solr uses Ivy 2.3.0.  Take a look in 
C:\Users\account\.ant\lib\ and remove older versions of ivy-*.jar, then run 
'ant ivy-bootstrap' from the Solr source code to download ivy-2.3.0.jar to 
C:\Users\account\.ant\lib\.

Just now on a Windows 7 box, I downloaded solr-4.2.1-src.tgz from one of the 
Apache mirrors, unpacked it, deleted my C:\Users\account\.ivy2\ directory (so 
that ivy would re-download everything), and ran 'ant idea' from a cmd window.  
BUILD SUCCESSFUL.

Steve

On Apr 25, 2013, at 6:07 AM, Shahar Davidson <shah...@checkpoint.com> wrote:

> Hi all,
> 
> I'm trying to run 'ant idea' on 4.2.* and I'm getting "invalid sha1" 
> error messages. (see below)
> 
> I'll appreciate any help,
> 
> Shahar
> ===================================================================
> .
> .
> .
> resolve
> ivy:retrieve
> 
> :: problems summary ::
> :::: WARNINGS
>       problem while downloading module descriptor: 
> http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom: invalid 
> sha1: expected=<!-- computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (72ms)
>       problem while downloading module descriptor: 
> http://oss.sonatype.org/content/repositories/releases/org/apache/ant/ant/1.8.2/ant-1.8.2.pom:
>  invalid sha1: expected=<!-- 
> computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (53ms)
>       problem while downloading module descriptor: 
> http://maven.restlet.org/org/apache/ant/ant/1.8.2/ant-1.8.2.pom: invalid 
> sha1: expected=<!-- computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (53ms)
>       problem while downloading module descriptor: 
> http://mirror.netcologne.de/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.
> pom: invalid sha1: expected=<!-- 
> computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (58ms)
> 
>               module not found: org.apache.ant#ant;1.8.2 .
> .
> .
>       ==== public: tried
>         http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
>       ==== sonatype-releases: tried
>         
> http://oss.sonatype.org/content/repositories/releases/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
>       ==== maven.restlet.org: tried
>         http://maven.restlet.org/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
>       ==== working-chinese-mirror: tried
>         
> http://mirror.netcologne.de/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
>       problem while downloading module descriptor: 
> http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.pom: invalid sha1: 
> expected=<!-- computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (74ms)
>       problem while downloading module descriptor: 
> http://oss.sonatype.org/content/repositories/releases/junit/junit/4.10/junit-4.10.pom:
>  invalid sha1: expected=<!-- 
> computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (60ms)
>       problem while downloading module descriptor: 
> http://maven.restlet.org/junit/junit/4.10/junit-4.10.pom: invalid sha1: 
> expected=<!-- computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (58ms)
>       problem while downloading module descriptor: 
> http://mirror.netcologne.de/maven2/junit/junit/4.10/junit-4.10.pom: 
> invalid sha1: expected=<!-- 
> computed=3e839ffb83951c79858075ddd4587bf67612b3c4 (60ms)
> 
>               module not found: junit#junit;4.10
> .
> .
> .
> .
>                ::::::::::::::::::::::::::::::::::::::::::::::
>               ::          UNRESOLVED DEPENDENCIES         ::
>               ::::::::::::::::::::::::::::::::::::::::::::::
>               :: org.apache.ant#ant;1.8.2: not found
>               :: junit#junit;4.10: not found
>               :: com.carrotsearch.randomizedtesting#junit4-ant;2.0.8: not 
> found
>               :: 
> com.carrotsearch.randomizedtesting#randomizedtesting-runner;2.0.8: not found
>               ::::::::::::::::::::::::::::::::::::::::::::::
> 
> :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> D:\apache_solr_4.2.1\lucene\common-build.xml:348: impossible to resolve 
> dependencies:
>       resolve failed - see output for details


Email secured by Check Point

Reply via email to