https://repository.apache.org/content/repositories/snapshots/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] :: org.restlet.jse#org.restlet.ext.jaxrs;2.2.3!org.restlet.ext.jaxrs.jar
[ivy:resolve] :: org.apache.commons#commons-collections4;4.0!commons-collections4.jar
[ivy:resolve] :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :::: ERRORS
[ivy:resolve] Server access Error: 拒绝连接 url=http://repo1.maven.org/maven2/org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.jar
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/hadoop/nutch/build.xml:467: impossible to resolve dependencies:
resolve failed - see output for details
解决办法:
导致依赖的jar无法正常下载,编译失败。此问题的原因是http://repo1.maven.org/maven2/不存在,解决方案是寻找能使用的资源库URL。经过测试http://mirrors.ibiblio.org/maven2/在浏览器下可以正常访问,用此URL替换\ivy目录下ivysettings.xml中的http://repo1.maven.org/maven2/,可以正常下载所依赖的jar包,编译成功。
<property name="repo.maven.org" value="http://repo1.maven.org/maven2/" override="false"/>
或者修改hosts文件,添加72.21.81.253 repo1.maven.org,该方法也可以解决下载问题