【问题标题】:Running Nutch in Eclipse - Missing Build Folder在 Eclipse 中运行 Nutch - 缺少构建文件夹
【发布时间】:2013-12-22 19:52:22
【问题描述】:

您好,我正在关注 this tutorial 尝试在 Eclipse 中运行 Nutch 并逐步运行 Nutch。

我完成了这一步(Nutch 1.X)没有问题:

 svn co https://svn.apache.org/repos/asf/nutch/trunk
 cd trunk

因为我正在处理1.X,所以我跳到了步骤#5。但是,它提到:

Add “http.agent.name” and “http.robots.agents” with appropiate values in “conf/nutch-site.xml”. See conf/nutch-default.xml for the description of these properties. Also, add “plugin.folders” and set it to {PATH_TO_NUTCH_CHECKOUT}/build/plugins. eg. If Nutch is present at "/home/tejas/Desktop/2.x", set the property to:

 <property>
   <name>plugin.folders</name>
   <value>/home/tejas/Desktop/2.x/build/plugins</value>
 </property>

所以这是我的问题:

(1)。默认情况下,trunk/conf 文件夹中没有 nutch-site.xml 文件,但是,有一个 nutch-site.xml.template 文件,我将其重命名为 nutch-site.xml 以供使用。

(2)。 {PATH_TO_NUTCH_CHECKOUT}/build/plugins,我真的不知道这个build文件夹在哪里。 这就是我所做的:

trunk$ find . | grep build
./.svn/prop-base/build.xml.svn-base
./.svn/text-base/build.xml.svn-base
./build.xml
./src/plugin/.svn/prop-base/build-plugin.xml.svn-base
./src/plugin/.svn/prop-base/build.xml.svn-base
...

显然没有名为“build”的文件夹,也没有名为“plugins”的文件夹。

那我应该把./src/plugin 作为./build/plugins 文件夹然后继续吗?我没有太多从源代码构建的经验,因此不胜感激!

【问题讨论】:

    标签: java eclipse nutch


    【解决方案1】:

    这是您问题的答案:

    1) 是的。您是正确的,您必须将 nutch-site.xml.template 文件重命名为 nutch-site.xml 并进行相应的更改。

    2) 当前没有 /build/plugins 文件夹。但是当您运行 "ant eclipse" 命令时,您将在 {PATH_TO_NUTCH_CHECKOUT} 中获得 "/build/plugins" 这就是为什么它被写成将绝对路径设置为 {PATH_TO_NUTCH_CHECKOUT}/build/plugins 不要在这里给出相对路径,因为它不会。

    希望对你有帮助!!!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多