Hi,
Ok. I think I got it. In addition to adding the following lines to
plugin.xml:
<requires>
<import plugin="parse-html"/>
</requires>
I needed to add the following lines to build.xml:
<path id="plugin.deps">
<fileset dir="${nutch.root}/build">
<include name="**/parse-html/*.jar" />
</fileset>
</path>
An example how this works can be found in the parse-html plugin itself.
Just in case someone else has the same problem.
Regards
Am Di 21 Aug 2012 09:44:41 CEST schrieb Alaak:
Hi,
Thanks for your help.
I already implemented that example and it works nicely. My problem now
is that I need my plugin to have a dependency on an existing nutch
plugin. To be more concrete on the parse-html plugin. However I do not
know which of the three configuration files (plugin.xml, ivy.xml,
build.xml) to change so that Nutch finds my dependency and builds
successfully.
Regards
Am Di 21 Aug 2012 03:33:27 CEST schrieb feng lu:
http://wiki.apache.org/nutch/WritingPluginExample#Writing_a_Nutch_Plugin
An example of how to write a nutch plugin, hope this could help you.It
use ant to compile the plugin.
On Tue, Aug 21, 2012 at 1:17 AM, Alaak <[email protected]
<mailto:[email protected]>> wrote:
Hi,
I wrote my own plugin containing a main method which is called for
testing purposes as described under:
http://wiki.apache.org/nutch/__AboutPlugins
<http://wiki.apache.org/nutch/AboutPlugins>
However, since this is an IndexingFilter I would like to get the
output of the "parse-html" plugin for my tests. The problem is, I
do not know how to add this dependency to my project. I tried it with:
<requires>
<import plugin="parse-html"/>
</requires>
in my plugin.xml. But this results only in the message that the
HtmlParser class can not be found while building Nutch.
It would be great if someone tells me how to achieve this or what
to read to aqcuire the necessary knowledge.
Thanks
--
Don't Grow Old, Grow Up... :-)