[jira] [Commented] (NUTCH-2489) Dependency collision with lucene-analyzers-common in scoring-similarity plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (NUTCH-2489) Dependency collision with lucene-analyzers-common in scoring-similarity plugin

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/NUTCH-2489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16356504#comment-16356504 ]

ASF GitHub Bot commented on NUTCH-2489:
---------------------------------------

lewismc closed pull request #284: NUTCH-2489: Dependency collision with lucene-analyzers-common in scoring-similarity plugin
URL: https://github.com/apache/nutch/pull/284
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/plugin/scoring-similarity/ivy.xml b/src/plugin/scoring-similarity/ivy.xml
index be0a1de05..745fe5e9a 100644
--- a/src/plugin/scoring-similarity/ivy.xml
+++ b/src/plugin/scoring-similarity/ivy.xml
@@ -36,7 +36,7 @@
   </publications>
 
   <dependencies>
-    <dependency org="org.apache.lucene" name="lucene-analyzers-common" rev="5.5.0" conf="*->default"/>
+    <dependency org="org.apache.lucene" name="lucene-analyzers-common" rev="6.4.1" conf="*->default"/>
   </dependencies>
   
 </ivy-module>
diff --git a/src/plugin/scoring-similarity/plugin.xml b/src/plugin/scoring-similarity/plugin.xml
index 9639c189f..a0353c718 100644
--- a/src/plugin/scoring-similarity/plugin.xml
+++ b/src/plugin/scoring-similarity/plugin.xml
@@ -26,8 +26,8 @@
       <library name="scoring-similarity.jar">
          <export name="*"/>
       </library>
-      <library name="lucene-analyzers-common-5.5.0.jar"/>
-      <library name="lucene-core-5.5.0.jar"/>
+      <library name="lucene-analyzers-common-6.4.1.jar"/>
+      <library name="lucene-core-6.4.1.jar"/>
    </runtime>
 
    <requires>
diff --git a/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneAnalyzerUtil.java b/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneAnalyzerUtil.java
index 4b519bcdc..c6a1c58ca 100644
--- a/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneAnalyzerUtil.java
+++ b/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneAnalyzerUtil.java
@@ -28,7 +28,7 @@
 import org.apache.lucene.analysis.en.PorterStemFilter;
 import org.apache.lucene.analysis.standard.ClassicTokenizer;
 import org.apache.lucene.analysis.standard.StandardAnalyzer;
-import org.apache.lucene.analysis.util.CharArraySet;
+import org.apache.lucene.analysis.CharArraySet;
 
 /**
  * Creates a custom analyzer based on user provided inputs
diff --git a/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java b/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java
index e55f45b1a..d6b6d1ac0 100644
--- a/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java
+++ b/src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneTokenizer.java
@@ -29,7 +29,7 @@
 import org.apache.lucene.analysis.standard.StandardAnalyzer;
 import org.apache.lucene.analysis.standard.StandardTokenizer;
 import org.apache.lucene.analysis.shingle.ShingleFilter;
-import org.apache.lucene.analysis.util.CharArraySet;
+import org.apache.lucene.analysis.CharArraySet;
 import org.apache.nutch.scoring.similarity.util.LuceneAnalyzerUtil.StemFilterType;
 
 public class LuceneTokenizer {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


> Dependency collision with lucene-analyzers-common in scoring-similarity plugin
> ------------------------------------------------------------------------------
>
>                 Key: NUTCH-2489
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2489
>             Project: Nutch
>          Issue Type: Bug
>          Components: scoring
>    Affects Versions: 1.14
>            Reporter: Yossi Tamari
>            Priority: Major
>             Fix For: 1.15
>
>         Attachments: ivy.xml.patch
>
>
> After updating to Master branch of 1.14, we get a few compile errors in LuceneTokenizer.java and LuceneAnalyzerUtil.java:
> {code:java}
> Type mismatch: cannot convert from org.apache.lucene.analysis.CharArraySet to org.apache.lucene.analysis.util.CharArraySet
> {code}
> This seems to be caused by the fact that scoring-similarity compiles with lucene-analyzers-common-5.5.0.jar (from ivy.xml), but with lucene-core-6.4.1 instead of the matching 5.5.0.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)