有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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) 个答案

  1. # 1 楼答案

    关于缺少“rat/anttasks/antlib.xml”的警告可以忽略。如果通过执行ant rat-sources来安装Apache Ratjar,它将消失。此任务仅用于源代码维护(它验证是否将许可证标头附加到所有源文件)

    目标ant eclipse执行一次,并写入Eclipse项目文件(.project.classpath),允许将Nutch源树作为Eclipse项目导入