java - Using a local Repository in Maven for ElasticSearch -
when using elastic search, module compiles , runs properly. in pom.xml, have included following dependency,
<dependency> <groupid>org.elasticsearch</groupid> <artifactid>elasticsearch</artifactid> <version>1.4.5</version> </dependency>
but needed changes(implement timer in 1 of methods of es), forked code, made jar , saved in local repository:-
mvn install:install-file -dfile=/users/mike/desktop/myelastic/elasticsearch/target/elasticsearch-1.4.6-snapshot.jar -dgroupid=org.elasticsearch -dartifactid=elasticsearch -dversion=1.4.6-snapshot -dpackaging=jar -dgeneratepom=true
now trying use locally saved repository instead of remote repository. made following changes pom.xml
<dependency> <groupid>org.elasticsearch</groupid> <artifactid>elasticsearch</artifactid> <version>1.4.6-snapshot</version> </dependency>
but when compile module, strange error being thrown :-
slf4j: failed load class "org.slf4j.impl.staticloggerbinder". slf4j: defaulting no-operation (nop) logger implementation slf4j: see http://www.slf4j.org/codes.html#staticloggerbinder further details. exception in thread "main" java.lang.noclassdeffounderror: org/apache/lucene/util/version @ org.elasticsearch.version.(version.java:44) @ org.elasticsearch.node.internal.internalnode.(internalnode.java:137) @ org.elasticsearch.node.nodebuilder.build(nodebuilder.java:159) @ org.elasticsearch.node.nodebuilder.node(nodebuilder.java:166) @ mike.practice.es.practicees3.(practicees3.java:55) @ mike.practice.es.practicees3.main(practicees3.java:177) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ com.intellij.rt.execution.application.appmain.main(appmain.java:140) caused by: java.lang.classnotfoundexception: org.apache.lucene.util.version @ java.net.urlclassloader.findclass(urlclassloader.java:381) @ java.lang.classloader.loadclass(classloader.java:424) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:331) @ java.lang.classloader.loadclass(classloader.java:357) ... 11 more
process finished exit code 1
what have been possible error? local repository not being mapped. or issue version ?( using 1.4.5 earlier when forked , reverted 1.4, automatically 1.4.6 selected)
it helpful if me find out real issue , how correct it.
Comments
Post a Comment