Are you behind a proxy? can you check if wget is using a proxy? If that is
the case you'll need to configure some proxy on the ant configuration,
because it will try (by default) to connect directly to the maven
repository.

Jorge

On Mon, Oct 9, 2017 at 10:51 PM Madhawa Kasun Gunasekara <
[email protected]> wrote:

> I couldn't able to download it from the curl command. but when I use wget
> command, I was able to download it.
>
> Thanks,
> Madhawa
>
> Madhawa
>
> On Mon, Oct 9, 2017 at 3:44 PM, Jorge Betancourt <
> [email protected]> wrote:
>
>> Could this be related to some networking configuration on your laptop
>> (looks like)? Do you use any proxy to connect to the internet? could you
>> try executing the command:
>>
>> $ curl --head
>> http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
>>
>> And check if curl is able to download that file?
>>
>> Best Regards,
>>
>> On Mon, Oct 9, 2017 at 10:36 PM Madhawa Kasun Gunasekara <
>> [email protected]> wrote:
>>
>>> Hi Devs,
>>>
>>> I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm
>>> getting above mentioned error when I try to build it. I'm using JDK java
>>> version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this
>>> issue earlier? but when I check the  closure-compiler-v20130603.jar
>>> manually, It is available in
>>> http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
>>>
>>> but when I invoke the ant command, It always returns the Connection
>>> reset Error.
>>> Is there a way to fix this issue?
>>>
>>> madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
>>> Buildfile: /home/madhawa/nutch/build.xml
>>> Trying to override old definition of task javac
>>>   [taskdef] Could not load definitions from resource
>>> org/sonar/ant/antlib.xml. It could not be found.
>>>
>>> ivy-probe-antlib:
>>>
>>> ivy-download:
>>>   [taskdef] Could not load definitions from resource
>>> org/sonar/ant/antlib.xml. It could not be found.
>>>
>>> ivy-download-unchecked:
>>>
>>> ivy-init-antlib:
>>>
>>> ivy-init:
>>>
>>> init:
>>>
>>> clean-default-lib:
>>>
>>> resolve-default:
>>> [ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 ::
>>> http://ant.apache.org/ivy/ ::
>>> [ivy:resolve] :: loading settings :: file =
>>> /home/madhawa/nutch/ivy/ivysettings.xml
>>> [ivy:resolve] downloading
>>> http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
>>> ...
>>> [ivy:resolve]
>>> ...............................................................................................................................................
>>> [ivy:resolve]
>>> ...................................................................................................................................................................
>>> [ivy:resolve]
>>> ............................................................................................................................................................................................................
>>> [ivy:resolve]
>>> ........................................................................................................................................................................................
>>> [ivy:resolve]
>>> ................................................................................................................................................................................
>>> [ivy:resolve]
>>> ..........................................................................................................................................................................................................................................................
>>> [ivy:resolve]
>>> .............................................................................................................................................................................................................................................................
>>> [ivy:resolve]
>>> ......................................................................................................................................................................................................................................
>>> [ivy:resolve]
>>> ........................................................................................................................................................
>>> [ivy:resolve]
>>> ............................................................................................................................................................................................................................................................................................................
>>> [ivy:resolve]
>>> [ivy:resolve] :: problems summary ::
>>> [ivy:resolve] :::: WARNINGS
>>> [ivy:resolve]         [FAILED     ]
>>> com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:
>>> Connection reset (15980ms)
>>> [ivy:resolve]         [FAILED     ]
>>> com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:
>>> (0ms)
>>> [ivy:resolve]     ==== local: tried
>>> [ivy:resolve]
>>> /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
>>> [ivy:resolve]     ==== maven2: tried
>>> [ivy:resolve]
>>> http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
>>> [ivy:resolve]     ==== apache-snapshot: tried
>>> [ivy:resolve]
>>> https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
>>> [ivy:resolve]     ==== sonatype: tried
>>> [ivy:resolve]
>>> http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
>>> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
>>> [ivy:resolve]         ::              FAILED DOWNLOADS            ::
>>> [ivy:resolve]         :: ^ see resolution messages for details  ^ ::
>>> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
>>> [ivy:resolve]         ::
>>> com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
>>> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
>>> [ivy:resolve]
>>> [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>>>
>>> BUILD FAILED
>>>
>>>
>>>
>>> Thanks,
>>> Madhawa
>>>
>>
>

Reply via email to