关于elasticsearch-rest-high-level-client问题
来源:8-8 索引构建_异步实现
毛毛毛毛毛毛毛
2019-08-28
老师我想问你个问题
我用es时用的是elasticsearch-rest-high-level-client,
但是呢他其中的lucene jar版本过低,导致运行报java.lang.NoClassDefFoundError: org/apache/lucene/util/Accountable
然后加入
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>6.2.3</version>
</dependency>
但是还是走的之前的jar包,这个问题有解决办法么?
写回答
1回答
-
瓦力老师
2019-09-24
亲,so easy,所有的类似问题90%可以用以下方式解决
<dependency> <groupId>sample.ProjectA</groupId> <artifactId>Project-A</artifactId> <version>1.0</version> <scope>compile</scope> <exclusions> <exclusion> <!-- declare the exclusion here --> <groupId>sample.ProjectB</groupId> <artifactId>Project-B</artifactId> </exclusion> </exclusions> </dependency>
00
相似问题