我第一次尝试在Windows 10上基于this youtube tutorial设置和构建apache nutch 2.3.1,得到了Unresolved Dependencies错误,如下所示:
D:\ apachenutch> ant运行时 Buildfile:D:\ apachenutch \ build.xml 试图覆盖任务javac [taskdef]的旧定义无法加载 来自资源org / sonar / ant / antlib.xml的定义。它不可能 找到。
常春藤探针的antlib:
常春藤下载:[taskdef]无法从资源加载定义 组织/声纳/ ANT / antlib.xml。它无法找到。
常春藤下载-未选中:
常春藤INIT-的antlib:
常春藤-INIT:
INIT: [mkdir]创建了dir:D:\ apachenutch \ build [mkdir]创建了dir:D:\ apachenutch \ build \ classes [mkdir]创建了dir:D:\ apachenutch \ build \ release [mkdir]创建了dir:D:\ apachenutch \ build \ test [mkdir]创建了dir:D:\ apachenutch \ build \ test \ classes
清洁-lib的:
resolve-default:[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ :: [ivy:resolve] ::加载设置:: file = D:\ apachenutch \ ivy \ ivysettings.xml [常春藤:解决] [常春藤:解析] ::问题摘要:: [常春藤:解决] ::::警告[常春藤:解决]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::常春藤:解决]
::无人解决的依赖:: [常春藤:解决]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::常春藤:解决]
:: org.apache.avro #avro; 1.7.6:找不到配置 org.apache.avro #avro; 1.7.6:'compile'。它是必需的 org.apache.gora#gora-core; 0.6.1编译[ivy:resolve]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::常春藤:解决] [常春藤:解决] [常春藤:解决] ::使用VERBOSE或调试消息等级 更多细节BUILD FAILED D:\ apachenutch \ build.xml:468:无法解决 依赖关系: 解决失败 - 请参阅输出以获取详细信息
总时间:14秒
d:\ apachenutch>
我一直在尝试使用“Ant Clean”命令和“Ant Runtime”命令仍然多次没有运气并且出现上述错误。
那么我该如何解决呢?
答案 0 :(得分:2)
所有,由于https:在Maven下1/15/20之后需要,我遇到以下“未解决的依赖项”错误。我能够使用正确的https:参考来更新ivy.xml和ivysettings.xml,然后构建中的错误就消失了。
I hope the helps folks.
versions being used:
Nutch 2.3.1
Hbase 0.98.8
Solr 5.2.1
Java 7
Build error under ant:
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: org.apache.hbase#hbase-common;0.98.8-hadoop2: not found
[ivy:resolve] :: log4j#log4j;1.2.15: not found
[ivy:resolve] :: commons-io#commons-io;2.2: not found
[ivy:resolve] :: com.sun.xml.bind#jaxb-impl;2.1.12: not found
[ivy:resolve] :: com.sun.xml.bind#jaxb-impl;2.1.13: not found
[ivy:resolve] :: org.codehaus.jackson#jackson-core-asl;1.6.9: not found
[ivy:resolve] :: org.codehaus.jackson#jackson-mapper-asl;1.6.9: not found
[ivy:resolve] :: io.netty#netty;3.4.0.Final: not found
[ivy:resolve] :: commons-net#commons-net;2.2: not found
[ivy:resolve] :: log4j#log4j;1.2.16: not found
[ivy:resolve] :: commons-digester#commons-digester;1.7: not found
[ivy:resolve] :: org.apache.httpcomponents#httpcore;4.3.2: not found
[ivy:resolve] :: org.apache.hadoop#hadoop-yarn-common;2.2.0: not found
[ivy:resolve] :: org.apache.hadoop#hadoop-yarn-client;2.2.0: not found
[ivy:resolve] :: org.slf4j#slf4j-log4j12;1.6.6: not found
[ivy:resolve] :: org.apache.hadoop#hadoop-yarn-api;2.2.0: not found
[ivy:resolve] :: net.java.dev.jets3t#jets3t;0.7.1: not found
[ivy:resolve] :: asm#asm;3.1: not found
[ivy:resolve] :: org.apache.gora#gora-hbase;0.6.1: not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
答案 1 :(得分:0)
无法重现您的问题。
我能够使用最新的2.3.1版本候选版本成功编译代码:
git clone https://github.com/apache/nutch.git
cd nutch
git checkout -b release-2.3.1rc2 release-2.3.1rc2
ant
如果您仍然遇到问题,我是否可以建议您针对该项目提出问题。您需要引用您要编译的版本。
答案 2 :(得分:0)
我找到了解决此问题的方法。就我而言,我能够通过更改以下文件中 http
请求的所有 https
请求来修复它:ivy.xml
、ivy-configurations.xml
和 ivysettings.xml
< /p>