【发布时间】: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 文件夹然后继续吗?我没有太多从源代码构建的经验,因此不胜感激!
【问题讨论】: