nutch1.2 修改jsp頁面後,想打包部署到tomcat中,有幾個地方需要修改的。
其中一個地方,當然是搜索的索引路徑了.
nutch-site.xml
<property>
<name>searcher.dir</name>
<value>F:/nutch/test</value>
</property>
另外一個地方就是
nutch-default.xml
<property>
<name>plugin.folders</name>
<value>plugins</value>
<description>Directories where nutch plugins are located. Each
element may be a relative or absolute path. If absolute, it is used
as is. If relative, it is searched for on the classpath.</description>
</property>
因爲eclipse修改源碼時,要把此路徑修改過來,才能在eclipse裏編輯。
如果修改了這兩個地方,一般情況下,你在eclipse 通過ant 打包build.xml就可以了,對了。要把打成jar包改成打war包哈。這樣就ok了。如果打包還有問題,那就直接郵件問我吧。