[ 
https://jira.codehaus.org/browse/MINDEXER-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288017#comment-288017
 ] 

Jesse Glick commented on MINDEXER-48:
-------------------------------------

{code:xml}

Index: indexer-core/pom.xml
===================================================================
--- indexer-core/pom.xml        (revision 1230088)
+++ indexer-core/pom.xml        (working copy)
@@ -35,7 +35,7 @@
   </description>
 
   <properties>
-    <lucene.version>3.0.3</lucene.version>
+    <lucene.version>3.5.0</lucene.version>
     <maven.version>3.0.1</maven.version>
     <aether.version>1.8</aether.version>
     <archetype.version>2.1</archetype.version>
{code}

indeed produces numerous test failures with the reported assertion.

{code}
Index: 
indexer-core/src/main/java/org/apache/maven/index/context/NexusAnalyzer.java
===================================================================
--- 
indexer-core/src/main/java/org/apache/maven/index/context/NexusAnalyzer.java    
    (revision 1230088)
+++ 
indexer-core/src/main/java/org/apache/maven/index/context/NexusAnalyzer.java    
    (working copy)
@@ -35,7 +35,7 @@
  * @author Eugene Kuleshov
  * @author cstamas
  */
-public class NexusAnalyzer
+public final class NexusAnalyzer
     extends Analyzer
 {
     public TokenStream tokenStream( String fieldName, Reader reader )
{code}

solves that problem but just gives way to numerous other test failures.
                
> Assertions thrown when used with Lucene 3.1+
> --------------------------------------------
>
>                 Key: MINDEXER-48
>                 URL: https://jira.codehaus.org/browse/MINDEXER-48
>             Project: Maven Indexer
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>            Reporter: Jesse Glick
>            Priority: Critical
>
> {{NexusAnalyzer}} needs to be declared final to avoid an assertion error when 
> using Lucene 3.5 (and probably as early as 3.1).
> There may be other compatibility issues with 3.5, but this one completely 
> prevents usage of Indexer.
> Upstream change: https://issues.apache.org/jira/browse/LUCENE-2389
> Downstream bug: http://netbeans.org/bugzilla/show_bug.cgi?id=207035

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to