java“ant eclipse”不适用于Apache Nutch存储库
我想在Eclipse中使用ApacheNutch,我遵循了这个站点的步骤https://cwiki.apache.org/confluence/display/nutch/RunNutchInEclipse,但是当我运行ant eclipse
时,它总是在开始时使用以下行重新启动:
$ ant eclipse
Buildfile: /.../nutch/build.xml
Trying to override old definition of task javac
[taskdef] Could not load definitions from resource org/apache/rat/anttasks/antlib.xml. It could not be found.
clean-build:
[delete] Deleting directory /.../nutch/build
clean-default-lib:
clean-test-lib:
clean-lib:
clean-dist:
clean-eclipse:
ivy-probe-antlib:
ivy-download:
[taskdef] Could not load definitions from resource org/apache/rat/anttasks/antlib.xml. It could not be found.
我不知道程序应该在哪里找到资源org/apache/rat/anttasks/antlib.xml
,因为没有org
文件夹。你能帮我吗
# 1 楼答案
关于缺少“rat/anttasks/antlib.xml”的警告可以忽略。如果通过执行
ant rat-sources
来安装Apache Ratjar,它将消失。此任务仅用于源代码维护(它验证是否将许可证标头附加到所有源文件)目标
ant eclipse
执行一次,并写入Eclipse项目文件(.project
和.classpath
),允许将Nutch源树作为Eclipse项目导入