ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaikiran Pai <jai.forums2...@gmail.com>
Subject Re: Ant Ivy resolve / Authenticated Proxy Issue
Date Wed, 16 Sep 2015 18:17:34 GMT
When it hangs, from a separate command prompt, do:

jps -l

which should list the process id of the ant/ivy process that's running. 
Then do a:

jstack <process-id>

for that process and get the thread dump. That will help understand 
what's going on. This is similar to what Mark already suggested about 
using JConsole.

-Jaikiran
On Wednesday 16 September 2015 11:29 PM, Susheel Kumar wrote:
>   Ivy stucks during resolve when downloading
> https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar (see
> below the terminal console and ant -v eclipse shows similar info) while I
> have set ANT_OPTS for proxy & auth info.  So issue seems to be with  proxy
> or a bug in ivy that it is not able to use proxy info
>
>
> kumar$ ant eclipse
>
> Buildfile: /Users/kumar/sourcecode/trunk/build.xml
>
> resolve:
>
> resolve:
>
> ivy-availability-check:
>
> ivy-fail:
>
> ivy-configure:
>
> [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 ::
> http://ant.apache.org/ivy/ ::
>
> [ivy:configure] :: loading settings :: file =
> /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml
>
> resolve:
>
>
> [Stucks...]
>
> $ant -v eclipse
>
> ...
>
> ...
>
> [ivy:retrieve] default: Checking cache for: dependency:
> org.apache.ant#ant;1.8.2 {compile=[master]}
>
> [ivy:retrieve] don't use cache for org.apache.ant#ant;1.8.2:
> checkModified=true
>
> [ivy:retrieve] tried
> /Users/kumar/.ivy2/local/org.apache.ant/ant/1.8.2/ivys/ivy.xml
>
> [ivy:retrieve] tried
> /Users/kumar/.ivy2/local/org.apache.ant/ant/1.8.2/jars/ant.jar
>
> [ivy:retrieve] local: no ivy file nor artifact found for
> org.apache.ant#ant;1.8.2
>
> [ivy:retrieve] main: Checking cache for: dependency:
> org.apache.ant#ant;1.8.2 {compile=[master]}
>
> [ivy:retrieve] tried
> /Users/kumar/.ivy2/shared/org.apache.ant/ant/1.8.2/ivys/ivy.xml
>
> [ivy:retrieve] tried
> /Users/kumar/.ivy2/shared/org.apache.ant/ant/1.8.2/jars/ant.jar
>
> [ivy:retrieve] shared: no ivy file nor artifact found for
> org.apache.ant#ant;1.8.2
>
> [ivy:retrieve] tried
> https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
>
> [ivy:retrieve] ERROR: Server access error at url
> https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
> (java.net.ConnectException: Operation timed out)
>
> [ivy:retrieve] tried
> https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar
>
> [Stucks.....]
>
>
> On Wed, Sep 16, 2015 at 1:50 PM, Jaikiran Pai <jai.forums2013@gmail.com>
> wrote:
>
>> Does
>>
>> ant -v eclipse
>>
>> give any useful information?
>>
>> -Jaikiran
>>
>> On Wednesday 16 September 2015 07:20 PM, Susheel Kumar wrote:
>>
>>> Hi,
>>>
>>> Sending it to Solr group in addition to Ivy group.
>>>
>>>
>>> I have been building Solr trunk (
>>> http://svn.apache.org/repos/asf/lucene/dev/trunk/) using "ant eclipse"
>>> from
>>> quite some time but this week i am on a job where things are behind the
>>> firewall and a proxy is used.
>>>
>>> Issue: When not in company network then build works fine but when inside
>>> company network  Ivy stucks during resolve when downloading
>>> https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar
>>> (see
>>> below) I have set ANT_OPTS=-Dhttp.proxyHost=myproxyhost
>>> -Dhttp.proxyPort=8080 -Dhttp.proxyUser=myproxyusername
>>> -Dhttp.proxyPassword=myproxypassword  but that doesn't help.   Similar
>>> issue i run into with SVN but i was able to specify proxy & auth into
>>> .subversion/servers file and it worked.    With Ant Ivy no idea what's
>>> going wrong.  I also tried -autoproxy with ant command line but no luck.
>>> In the meantime .ivy2 folder which got populated outside network would
>>> help
>>> to proceed temporarily.
>>>
>>> Machine : mac 10.10.3
>>> Ant : 1.9.6
>>> Ivy : 2.4.0
>>>
>>> Attach build.xml & ivysettings.xml
>>>
>>> kumar$ ant eclipse
>>>
>>> Buildfile: /Users/kumar/sourcecode/trunk/build.xml
>>>
>>> resolve:
>>>
>>> resolve:
>>>
>>> ivy-availability-check:
>>>
>>> ivy-fail:
>>>
>>> ivy-configure:
>>>
>>> [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 ::
>>> http://ant.apache.org/ivy/ ::
>>>
>>> [ivy:configure] :: loading settings :: file =
>>> /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml
>>>
>>>
>>> resolve:
>>>
>>>


Mime
View raw message