弹性搜索5.6.4 pom传输问题

时间:2017-12-01 00:53:55

标签: java maven elasticsearch

我们指的是Elasticsearch 5.6.4。我在pom.xml中使用了以下条目:

<dependency>
    <groupId>org.elasticsearch.client</groupId>
    <artifactId>transport</artifactId>
    <version>5.6.4</version>
</dependency>

创建依赖关系树时:

[INFO] +- org.elasticsearch.client:transport:jar:5.6.4:compile
[INFO] |  +- org.elasticsearch:elasticsearch:jar:2.4.4:compile (version 
managed from 5.6.4)
[INFO] |  |  +- org.apache.lucene:lucene-core:jar:5.5.2:compile
[INFO] |  |  +- org.apache.lucene:lucene-backward-codecs:jar:5.5.2:compile

有人可以帮忙解决这个问题。我需要elasticsearch-5.6.4.jar,但我遇到了运行时问题。

1 个答案:

答案 0 :(得分:0)

<pre>
this resolved my issue

<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.elasticsearch</groupId>
                <artifactId>elasticsearch</artifactId>
                <version>5.6.4</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
</pre>