我想在Eclipse中使用Apache Nutch,我遵循了这个网站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
文件夹。你能帮我吗?
关于缺少"rat/anttasks/antlib.xml"可以忽略。如果通过执行ant rat-sources
来安装Apache Rat jar,它将消失。此任务仅用于源代码维护(它验证是否将LICENSE头附加到所有源文件)。
目标ant eclipse
被执行一次,并写入Eclipse项目文件(.project
和.classpath
),这些文件允许将Nutch源代码树导入为Eclipse项目。