ieda maven加载 XPackTransportClient jar报错

1.编辑项目maven 配置文件。

<profile>
<id>dev</id>
<repositories>
<repository> <!-- 增加elastic仓库 -->
<id>elasticsearch-releases</id>
<url>https://artifacts.elastic.co/maven</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
</pluginRepositories>
</profile>

2.激活

    <activeProfiles>
        <activeProfile>dev</activeProfile> <!-- 激活 -->
    </activeProfiles>

3.新增pom

        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>x-pack-transport</artifactId>
            <version>6.8.1</version>
        </dependency>

 

2.clien--重新bulid项目

 

posted @ 2020-12-25 11:15  启程华夏  阅读(517)  评论(0编辑  收藏  举报