elasticsearch.jar包的版本不正确

时间:2018-05-30 01:08:56

标签: maven elasticsearch pom.xml

当我使用es的高级客户端时,使用依赖项:

    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-high-level-client</artifactId>
        <version>6.2.4</version>
    </dependency>

并且依赖关系在elasticsearch-rest-high-level-client-6.2.4.pom传递:

<dependency>
  <groupId>org.elasticsearch</groupId>
  <artifactId>elasticsearch</artifactId>
  <version>6.2.4</version>
  <scope>compile</scope>
</dependency>

但是! maven下载了elasticsearch.jar的版本是2.6.4而不是6.2.4 !!! 当我构建mvn依赖:tree, 结果是:“2.4.6” 什么'错!!!!

0 个答案:

没有答案