Thanks Alexander. Actually, though, the closest information on either of those sites to answering my question is this bit from an external blog:

[quote]
Now that you have finished creating your files, upload them to the nutch directory on your server if you haven’t already done so. Then, add a line like the following to the build.xml file in the /nutch-dir/src/plugin directory:

  <ant dir="yourpluginname" target="deploy"/>

Then launch ant from the command line in that same directory (/nutch-dir/src/plugin). This should compile the classes and jar file for your plugin and place them in the /nutch-dir/build directory. It should also place a copy of the jar file and plugin.xml file in the /nutch-dir/plugins directory.
[/quote]

The last step - the bit where a jar file is placed in the NUTCH/plugins directory, is not happening for me. Things are getting built, but not moved into the location where Nutch can actually use them. I see the jars in NUTCH/build, but not in NUTCH/plugins.

Anybody else experiencing this?


On 11/10/2010 08:24 AM, Alexander Aristov wrote:
look at wiki's how-to

http://wiki.apache.org/nutch/PluginCentral
and
http://wiki.apache.org/nutch/WritingPluginExample-0.9

it might be outdated since current nutch versions use ivy which adds some
more configuration to nutch but just do the same things which are done in
nearby plugins.

Best Regards
Alexander Aristov


On 9 November 2010 21:48, Robert Douglass<[email protected]>  wrote:

Hi, I'm trying to use ant to build and deploy the plugins.

What I expected:
cd to NUTCH/src/plugin
ant clean&&  ant deploy&&  ant deploy-core
// new plugins appear in NUTCH/plugins

What happened:
ant clean failed with messages like:
BUILD FAILED
/home/robert/lib/nutch_1_2/src/plugin/build.xml:165: Basedir
/home/robert/lib/nutch_1_2/src/plugin/parse-rtf does not exist

I corrected this by commenting out these lines in src/plugin/build.xml:
    <!--<ant dir="lib-commons-httpclient" target="clean"/>-->
    <!--<ant dir="parse-mp3" target="clean"/>-->
    <!--<ant dir="parse-rtf" target="clean"/>-->

Then ant clean had a lot of warnings:
warning 'includeantruntime' was not set , defaulting to
build.sysclasspath=last; set to false for repeatable builds.

I fixed those by adding an includeantruntime parameter to the javac task in
build-plugin.xml:
  <target name="compile" depends="init,deps-jar">
    <echo message="Compiling plugin: ${name}"/>
    <javac
     includeantruntime="FALSE"


So now after running ant I see from git status that the jars are being
built:
#       modified:   build/feed/feed.jar

But what task or script moves them to plugins, along with their xml files?

Thanks for the help!



Reply via email to