Hello everyone

I'm trying to add a new plugin to Nutch/Solr for having new fields and
finally searching about it in the terminal interface.

For that , i have readen the howto WritingPluginexample 0.9 from the apache
wiki  and i 'm trying to doing that .

I have a problem with the building of the new plugin with ant :
This problem like cames from packages and ant can't import classes from
other packages .

Can anyone help me please what i must do for resolving this problem ????

Here is a copy of results of ANT building :

    [javac]
/home/Arnaud/nutch/src/plugin/recommended/src/java/org/apache/nutch/parse/recommended/RecommendedParser.java:34:
cannot find symbol
    [javac] symbol  : class Parse
    [javac] location: class
org.apache.nutch.parse.recommended.RecommendedParser
    [javac]   public Parse filter(Content content, Parse parse,
    [javac]                                        ^
    [javac]
/home/Arnaud/nutch/src/plugin/recommended/src/java/org/apache/nutch/parse/recommended/RecommendedParser.java:35:
cannot find symbol
    [javac] symbol  : class HTMLMetaTags
    [javac] location: class
org.apache.nutch.parse.recommended.RecommendedParser
    [javac]     HTMLMetaTags metaTags, DocumentFragment doc) {
    [javac]     ^
    [javac]
/home/Arnaud/nutch/src/plugin/recommended/src/java/org/apache/nutch/parse/recommended/RecommendedParser.java:34:
cannot find symbol
    [javac] symbol  : class Parse
    [javac] location: class
org.apache.nutch.parse.recommended.RecommendedParser
    [javac]   public Parse filter(Content content, Parse parse,
    [javac]          ^
    [javac]
/home/Arnaud/nutch/src/plugin/recommended/src/java/org/apache/nutch/parse/recommended/RecommendedQueryFilter.java:3:
package org.apache.nutch.searcher does not exist
    [javac] import org.apache.nutch.searcher.FieldQueryFilter;
    [javac]                                 ^
    [javac]
/home/Arnaud/nutch/src/plugin/recommended/src/java/org/apache/nutch/parse/recommended/RecommendedQueryFilter.java:12:
cannot find symbol
    [javac] symbol: class FieldQueryFilter
    [javac] public class RecommendedQueryFilter extends FieldQueryFilter {
    [javac]                                             ^
    [javac] Note:
/home/Arnaud/nutch/src/plugin/recommended/src/java/org/apache/nutch/parse/recommended/RecommendedIndexer.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 23 errors
BUILD FAILED
/home/Arnaud/nutch/src/plugin/build-plugin.xml:111: Compile failed; see the
compiler error output for details.

Total time: 3 seconds


Note : I m using Nutch 1.0 but the howto writingpluginexample on the wiki is
for 0.9 version ???

I didn't  think that can be come from that ??Maybe  YES or NOT ???


Please can anyone from the expert give me a help ?????????????
Thks

Reply via email to