使用 ant build时候报错,要怎么配置才行。好像是找不到lucene的jar

小杨阿哥哥 发布于 2011/06/23 13:51
阅读 2K+
收藏 0

download-ivy:
     [echo] installing ivy...
      [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta1/ivy-2.0.0-beta1.jar
      [get] To: C:\Documents and Settings\yangyan\桌面\bobo\ivy\ivy.jar
      [get] Not modified - so not downloaded

install-ivy:

resolve:
No ivy:settings found for the default reference 'ivy.instance'.  A default instance will be used
no settings file found, using default...
[ivy:retrieve] :: Ivy 2.0.0-beta1 - 20071206070608 :: http://ant.apache.org/ivy/ ::
:: loading settings :: url = jar:file:/C:/Documents%20and%20Settings/yangyan/%E6%A1%8C%E9%9D%A2/bobo/ivy/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: com.browseengine.bobo#bobo;working@ND-PC015
[ivy:retrieve]     confs: [master, test, jetty, solr]
[ivy:retrieve]     found com.google.protobuf#protobuf-java;2.2.0 in public
[ivy:retrieve]     found commons-logging#commons-logging;1.1 in public
[ivy:retrieve]     found commons-httpclient#commons-httpclient;3.1 in public
[ivy:retrieve]     found commons-collections#commons-collections;3.2.1 in public
[ivy:retrieve]     found commons-configuration#commons-configuration;1.6 in public
[ivy:retrieve]     found commons-lang#commons-lang;2.4 in public
[ivy:retrieve]     found commons-cli#commons-cli;1.2 in public
[ivy:retrieve]     found commons-digester#commons-digester;2.0 in public
[ivy:retrieve]     found xml-apis#xml-apis;2.0.2 in public
[ivy:retrieve]     found xerces#xercesImpl;2.9.1 in public
[ivy:retrieve]     found xerces#xmlParserAPIs;2.6.2 in public
[ivy:retrieve]     found org.directwebremoting#dwr;3.0.M1 in public
[ivy:retrieve]     found org.apache.ant#ant;1.7.1 in public
[ivy:retrieve]     found fastutil#fastutil;5.0.5 in public
[ivy:retrieve]     found com.thoughtworks.xstream#xstream;1.3.1 in public
[ivy:retrieve]     found org.json#json;20080701 in public
[ivy:retrieve]     found log4j#log4j;1.2.15 in public
[ivy:retrieve]     found com.linkedin.kamikaze#kamikaze;3.0.4 in public
[ivy:retrieve]     found javax.servlet#servlet-api;2.5 in public
[ivy:retrieve]     found org.springframework#spring-webmvc;2.5.5 in public
[ivy:retrieve]     found org.springframework#spring;2.5.5 in public
[ivy:retrieve]     found junit#junit;4.5 in public
[ivy:retrieve]     found org.mortbay.jetty#jetty;6.1.19 in public
[ivy:retrieve]     found org.apache.solr#solr-core;1.4.0 in public
[ivy:retrieve]     found org.apache.solr#solr-solrj;1.4.0 in public
[ivy:retrieve]     found org.slf4j#slf4j-api;1.6.1 in public
[ivy:retrieve]     found commons-codec#commons-codec;1.4 in public
[ivy:retrieve] :: resolution report :: resolve 1703ms :: artifacts dl 31ms
    ---------------------------------------------------------------------
    |                  |            modules            ||   artifacts   |
    |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
    ---------------------------------------------------------------------
    |      master      |   21  |   0   |   0   |   0   ||   20  |   0   |
    |       test       |   1   |   0   |   0   |   0   ||   1   |   0   |
    |       jetty      |   1   |   0   |   0   |   0   ||   1   |   0   |
    |       solr       |   4   |   0   |   0   |   0   ||   4   |   0   |
    ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: com.browseengine.bobo#bobo
[ivy:retrieve]     confs: [master, test, jetty, solr]
[ivy:retrieve]     0 artifacts copied, 26 already retrieved (0kB/46ms)

init:

bobo-browse-jar:

init:

compile:
    [javac] Compiling 194 source files to C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\build
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:8: 软件包 org.apache.lucene.analysis 不存在
    [javac] import org.apache.lucene.analysis.TokenStream;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:9: 软件包 org.apache.lucene.analysis.tokenattributes 不存在
    [javac] import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
    [javac]                                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:10: 软件包 org.apache.lucene.analysis.tokenattributes 不存在
    [javac] import org.apache.lucene.analysis.tokenattributes.PayloadAttribute;
    [javac]                                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:11: 软件包 org.apache.lucene.analysis.tokenattributes 不存在
    [javac] import org.apache.lucene.analysis.tokenattributes.TermAttribute;
    [javac]                                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:12: 找不到符号
    [javac] 符号: 类 Payload
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.Payload;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:17: 找不到符号
    [javac] 符号: 类 TokenStream
    [javac] public class IntMetaDataTokenStream extends TokenStream
    [javac]                                             ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:20: 找不到符号
    [javac] 符号: 类 TermAttribute
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.IntMetaDataTokenStream
    [javac]   private final TermAttribute _termAttribute;
    [javac]                 ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:21: 找不到符号
    [javac] 符号: 类 OffsetAttribute
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.IntMetaDataTokenStream
    [javac]   private final OffsetAttribute _offsetAttribute;
    [javac]                 ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:22: 找不到符号
    [javac] 符号: 类 PayloadAttribute
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.IntMetaDataTokenStream
    [javac]   private final PayloadAttribute _payloadAtt;
    [javac]                 ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\IntMetaDataTokenStream.java:23: 找不到符号
    [javac] 符号: 类 Payload
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.IntMetaDataTokenStream
    [javac]   private Payload _payload; 
    [javac]           ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:8: 软件包 org.apache.lucene.analysis 不存在
    [javac] import org.apache.lucene.analysis.TokenFilter;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:9: 软件包 org.apache.lucene.analysis 不存在
    [javac] import org.apache.lucene.analysis.TokenStream;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:10: 软件包 org.apache.lucene.analysis.tokenattributes 不存在
    [javac] import org.apache.lucene.analysis.tokenattributes.PayloadAttribute;
    [javac]                                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:11: 找不到符号
    [javac] 符号: 类 Payload
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.Payload;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:17: 找不到符号
    [javac] 符号: 类 TokenFilter
    [javac] public class SectionTokenStream extends TokenFilter
    [javac]                                         ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:19: 找不到符号
    [javac] 符号: 类 Payload
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.SectionTokenStream
    [javac]   private Payload _payload;
    [javac]           ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:20: 找不到符号
    [javac] 符号: 类 PayloadAttribute
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.SectionTokenStream
    [javac]   private PayloadAttribute _payloadAtt;
    [javac]           ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:22: 找不到符号
    [javac] 符号: 类 TokenStream
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.SectionTokenStream
    [javac]   public SectionTokenStream(TokenStream tokenStream, int sectionId)
    [javac]                             ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:39: 找不到符号
    [javac] 符号: 类 Payload
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.SectionTokenStream
    [javac]   static public Payload encodeIntPayload(int id)
    [javac]                 ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\analysis\section\SectionTokenStream.java:54: 找不到符号
    [javac] 符号: 类 Payload
    [javac] 位置: 类 com.browseengine.bobo.analysis.section.SectionTokenStream
    [javac]   static public int decodeIntPayload(Payload payload)
    [javac]                                      ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboBrowser.java:12: 找不到符号
    [javac] 符号: 类 IndexReader
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.IndexReader;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboBrowser.java:13: 软件包 org.apache.lucene.util 不存在
    [javac] import org.apache.lucene.util.ReaderUtil;
    [javac]                              ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:15: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Collector;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:16: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Explanation;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:17: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.MatchAllDocsQuery;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:18: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.MultiSearcher;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:19: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Query;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:20: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Similarity;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:21: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.SortField;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:22: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Weight;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:31: 找不到符号
    [javac] 符号: 类 MultiSearcher
    [javac] public class MultiBoboBrowser extends MultiSearcher implements Browsable,Closeable
    [javac]                                       ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:7: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Collector;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:8: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Explanation;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:9: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Query;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:10: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Searchable;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:11: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Similarity;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:12: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.SortField;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:13: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Weight;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:18: 找不到符号
    [javac] 符号: 类 Searchable
    [javac] public interface Browsable extends Searchable
    [javac]                                    ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:47: 软件包 org.apache.lucene.document 不存在
    [javac] import org.apache.lucene.document.Document;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:48: 软件包 org.apache.lucene.document 不存在
    [javac] import org.apache.lucene.document.Field;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:49: 找不到符号
    [javac] 符号: 类 CorruptIndexException
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.CorruptIndexException;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:50: 找不到符号
    [javac] 符号: 类 FilterIndexReader
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.FilterIndexReader;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:51: 找不到符号
    [javac] 符号: 类 IndexReader
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.IndexReader;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:52: 找不到符号
    [javac] 符号: 类 MultiReader
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.MultiReader;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:53: 找不到符号
    [javac] 符号: 类 SegmentInfo
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.SegmentInfo;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:54: 找不到符号
    [javac] 符号: 类 SegmentInfos
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.SegmentInfos;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:55: 找不到符号
    [javac] 符号: 类 SegmentReader
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.SegmentReader;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:56: 找不到符号
    [javac] 符号: 类 Term
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.Term;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:57: 找不到符号
    [javac] 符号: 类 TermEnum
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.TermEnum;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:58: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.MatchAllDocsQuery;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:59: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Query;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:60: 软件包 org.apache.lucene.store 不存在
    [javac] import org.apache.lucene.store.Directory;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:61: 软件包 org.apache.lucene.store 不存在
    [javac] import org.apache.lucene.store.FSDirectory;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:62: 软件包 org.apache.lucene.util 不存在
    [javac] import org.apache.lucene.util.ReaderUtil;
    [javac]                              ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboIndexReader.java:73: 找不到符号
    [javac] 符号: 类 FilterIndexReader
    [javac] public class BoboIndexReader extends FilterIndexReader
    [javac]                                      ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:14: 软件包 org.apache.lucene.document 不存在
    [javac] import org.apache.lucene.document.Document;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:15: 软件包 org.apache.lucene.document 不存在
    [javac] import org.apache.lucene.document.Field;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:16: 软件包 org.apache.lucene.document 不存在
    [javac] import org.apache.lucene.document.FieldSelector;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:17: 软件包 org.apache.lucene.document 不存在
    [javac] import org.apache.lucene.document.FieldSelectorResult;
    [javac]                                  ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:18: 找不到符号
    [javac] 符号: 类 CorruptIndexException
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.CorruptIndexException;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:19: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Collector;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:20: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Explanation;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:21: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Filter;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:22: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.MatchAllDocsQuery;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:23: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Query;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:24: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.SortField;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BoboSubBrowser.java:25: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Weight;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:11: 找不到符号
    [javac] 符号: 类 IndexReader
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.IndexReader;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:12: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Collector;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:13: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.DocIdSet;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:14: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.DocIdSetIterator;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:15: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Filter;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:16: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.IndexSearcher;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:17: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Scorer;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:18: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Weight;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:19: 软件包 org.apache.lucene.util 不存在
    [javac] import org.apache.lucene.util.ReaderUtil;
    [javac]                              ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\search\BoboSearcher2.java:27: 找不到符号
    [javac] 符号: 类 IndexSearcher
    [javac] public class BoboSearcher2 extends IndexSearcher{
    [javac]                                    ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BrowseRequest.java:35: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Filter;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BrowseRequest.java:36: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Query;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\BrowseRequest.java:37: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.SortField;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:57: 找不到符号
    [javac] 符号: 类 Collector
    [javac] 位置: 类 com.browseengine.bobo.api.MultiBoboBrowser
    [javac]   public void browse(BrowseRequest req,final Collector hc, Map<String, FacetAccessible> facetMap) throws BrowseException
    [javac]                                              ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:63: 找不到符号
    [javac] 符号: 类 Collector
    [javac] 位置: 类 com.browseengine.bobo.api.MultiBoboBrowser
    [javac]                      Collector collector,
    [javac]                      ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:87: 找不到符号
    [javac] 符号: 类 Weight
    [javac] 位置: 类 com.browseengine.bobo.api.MultiBoboBrowser
    [javac]   public void browse(BrowseRequest req, Weight weight, final Collector hc, Map<String, FacetAccessible> facetMap, int start) throws BrowseException
    [javac]                                         ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:87: 找不到符号
    [javac] 符号: 类 Collector
    [javac] 位置: 类 com.browseengine.bobo.api.MultiBoboBrowser
    [javac]   public void browse(BrowseRequest req, Weight weight, final Collector hc, Map<String, FacetAccessible> facetMap, int start) throws BrowseException
    [javac]                                                              ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:270: 找不到符号
    [javac] 符号: 类 Similarity
    [javac] 位置: 类 com.browseengine.bobo.api.MultiBoboBrowser
    [javac]   public void setSimilarity(Similarity similarity)
    [javac]                             ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:332: 找不到符号
    [javac] 符号: 类 SortField
    [javac] 位置: 类 com.browseengine.bobo.api.MultiBoboBrowser
    [javac]   public SortCollector getSortCollector(SortField[] sort, Query q,int offset, int count, boolean fetchStoredFields,
    [javac]                                         ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\MultiBoboBrowser.java:332: 找不到符号
    [javac] 符号: 类 Query
    [javac] 位置: 类 com.browseengine.bobo.api.MultiBoboBrowser
    [javac]   public SortCollector getSortCollector(SortField[] sort, Query q,int offset, int count, boolean fetchStoredFields,
    [javac]                                                           ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollector.java:8: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Collector;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollector.java:9: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.MatchAllDocsQuery;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollector.java:10: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.Query;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollector.java:11: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.SortField;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\DocComparatorSource.java:7: 找不到符号
    [javac] 符号: 类 IndexReader
    [javac] 位置: 软件包 org.apache.lucene.index
    [javac] import org.apache.lucene.index.IndexReader;
    [javac]                               ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\DocComparatorSource.java:8: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.FieldCache;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\DocComparatorSource.java:9: 软件包 org.apache.lucene.search 不存在
    [javac] import org.apache.lucene.search.ScoreDoc;
    [javac]                                ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\DocComparatorSource.java:10: 软件包 org.apache.lucene.search.FieldCache 不存在
    [javac] import org.apache.lucene.search.FieldCache.StringIndex;
    [javac]                                           ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollector.java:21: 找不到符号
    [javac] 符号: 类 Collector
    [javac] public abstract class SortCollector extends Collector {
    [javac]                                             ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:22: 找不到符号
    [javac] 符号: 类 Collector
    [javac] 位置: 接口 com.browseengine.bobo.api.Browsable
    [javac]                 Collector hitCollector,
    [javac]                 ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:26: 找不到符号
    [javac] 符号: 类 Collector
    [javac] 位置: 接口 com.browseengine.bobo.api.Browsable
    [javac]                 Collector hitCollector,
    [javac]                 ^
    [javac] C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\src\com\browseengine\bobo\api\Browsable.java:31: 找不到符号
    [javac] 符号: 类 Weight
    [javac] 位置: 接口 com.browseengine.bobo.api.Browsable
    [javac]                 Weight weight,
    [javac]                 ^
    [javac] 注意:某些输入文件使用或覆盖了已过时的 API。
    [javac] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
    [javac] 注意:某些输入文件使用了未经检查或不安全的操作。
    [javac] 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
    [javac] 100 错误

BUILD FAILED
C:\Documents and Settings\yangyan\桌面\bobo\build.xml:103: The following error occurred while executing this line:
C:\Documents and Settings\yangyan\桌面\bobo\bobo-browse\build.xml:27: Compile failed; see the compiler error output for details.

Total time: 9 seconds

加载中
0
c
claire_ry
javac中加上encoding=“utf-8”
返回顶部
顶部