簡體   English   中英

pom.xml中正確的依賴項條目是什么,以將Snowball分析器與Lucene 2.4.0一起使用?

[英]What is the proper dependency entry in pom.xml to use the Snowball analyzer with Lucene 2.4.0?

我正在嘗試在我的Maven 2項目中將SnowballAnalyzer換成StandardAnalyzer 我目前正在使用

    <dependency>
        <groupId>org.apache.lucene</groupId>
        <artifactId>lucene-contrib</artifactId>
        <version>2.4.0</version>
        <scope>compile</scope>
    </dependency>

但我不斷收到以下錯誤:

Missing:
----------
1) org.apache.lucene:lucene-contrib:jar:2.4.0

從回購中,您似乎應該包括以下內容:

<dependency>
   <groupId>org.apache.lucene</groupId>
   <artifactId>lucene-snowball</artifactId>
   <version>2.4.0</version>
</dependency>

至少從我從http://repo1.maven.org/maven2/中可以看到的內容來看,它看起來像是適當的依賴項?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM