New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when I compile the code #3

Open
Phantas0s opened this Issue Feb 9, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@Phantas0s

Phantas0s commented Feb 9, 2015

Hello !

I'm trying to use the compound filter of https://github.com/wayfair/compound-splitter (to use it with SolR)

I'm not a java developer (but a PHP one).

My problem: these errors.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project compound-splitter: Compilation failure: Compilation failure:
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitter.java:[12,16] error: package org.slf4j does not exist
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitter.java:[13,16] error: package org.slf4j does not exist
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitter.java:[31,19] error: cannot find symbol
[ERROR] 
[ERROR] could not parse error message:   symbol:   class Logger
[ERROR] location: class GermanCompoundSplitter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:4: error: package org.apache.lucene.analysis.compound does not exist
[ERROR] import org.apache.lucene.analysis.compound.CompoundWordTokenFilterBase;
[ERROR] ^
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:[6,16] error: package org.slf4j does not exist
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:[7,16] error: package org.slf4j does not exist
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:[10,4] error: cannot find symbol
[ERROR] 
[ERROR] could not parse error message:   symbol: class CompoundWordTokenFilterBase
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:11: error: cannot find symbol
[ERROR] private static Logger log = LoggerFactory
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   class Logger
[ERROR] location: class GermanCompoundSplitterTokenFilter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:7: error: package org.apache.lucene.analysis.util does not exist
[ERROR] import org.apache.lucene.analysis.util.*;
[ERROR] ^
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:[8,16] error: package org.slf4j does not exist
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:[9,16] error: package org.slf4j does not exist
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:[12,4] error: cannot find symbol
[ERROR] 
[ERROR] could not parse error message:   symbol: class TokenFilterFactory
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:13: error: cannot find symbol
[ERROR] private static Logger log = LoggerFactory
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   class Logger
[ERROR] location: class GermanCompoundSplitterTokenFilterFactory
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/CompileCompoundDictionaries.java:19: error: package org.slf4j does not exist
[ERROR] import org.slf4j.Logger;
[ERROR] ^
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/CompileCompoundDictionaries.java:[20,16] error: package org.slf4j does not exist
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/CompileCompoundDictionaries.java:[28,17] error: cannot find symbol
[ERROR] 
[ERROR] could not parse error message:   symbol:   class Logger
[ERROR] location: class CompileCompoundDictionaries
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitter.java:31: error: cannot find symbol
[ERROR] private static Logger log = LoggerFactory
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   variable LoggerFactory
[ERROR] location: class GermanCompoundSplitter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitter.java:226: error: method getBytesReader in class FST<T> cannot be applied to given types;
[ERROR] surfaceForms.getBytesReader());
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   required: int
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] where T is a type-variable:
[ERROR] T extends Object declared in class FST
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitter.java:230: error: method getBytesReader in class FST<T> cannot be applied to given types;
[ERROR] surfaceForms.getBytesReader()) != null)
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   required: int
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] where T is a type-variable:
[ERROR] T extends Object declared in class FST
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitter.java:273: error: method getBytesReader in class FST<T> cannot be applied to given types;
[ERROR] glueMorphemes.getBytesReader());
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   required: int
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] where T is a type-variable:
[ERROR] T extends Object declared in class FST
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:11: error: cannot find symbol
[ERROR] private static Logger log = LoggerFactory
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   variable LoggerFactory
[ERROR] location: class GermanCompoundSplitterTokenFilter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:25: error: cannot find symbol
[ERROR] String incomingPossibleCompound = termAtt.toString();
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   variable termAtt
[ERROR] location: class GermanCompoundSplitterTokenFilter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:41: error: cannot find symbol
[ERROR] tokens.add(new CompoundToken(startInd, length));
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   class CompoundToken
[ERROR] location: class GermanCompoundSplitterTokenFilter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilter.java:41: error: cannot find symbol
[ERROR] tokens.add(new CompoundToken(startInd, length));
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   variable tokens
[ERROR] location: class GermanCompoundSplitterTokenFilter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:13: error: cannot find symbol
[ERROR] private static Logger log = LoggerFactory
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   variable LoggerFactory
[ERROR] location: class GermanCompoundSplitterTokenFilterFactory
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:21: error: cannot find symbol
[ERROR] super.init(args);
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   variable super
[ERROR] location: class GermanCompoundSplitterTokenFilterFactory
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:19: error: method does not override or implement a method from a supertype
[ERROR] @Override
[ERROR] ^
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:[40,49] error: cannot find symbol
[ERROR] 
[ERROR] could not parse error message:   symbol:   variable luceneMatchVersion
[ERROR] location: class GermanCompoundSplitterTokenFilterFactory
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:40: error: incompatible types
[ERROR] return new GermanCompoundSplitterTokenFilter(luceneMatchVersion, input,
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   required: TokenStream
[ERROR] found:    GermanCompoundSplitterTokenFilter
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/GermanCompoundSplitterTokenFilterFactory.java:38: error: method does not override or implement a method from a supertype
[ERROR] @Override
[ERROR] ^
[ERROR] 
[ERROR] /opt/solr/contrib/compound-splitter-master/src/main/java/org/apache/lucene/analysis/de/compounds/CompileCompoundDictionaries.java:[28,30] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment