[英]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.