Need compatible version of x-pack-transport of org.elasticsearch.client with ElasticSearch 6.8.2

We are using elasticsearch 6.8.2.
Existing code is using TrasportClient for connection with ElasticSEarch from Java code.
Now there is ELastiSearch userid and password.
So we are trying to use x-pack-transport dependency of org.elasticsearch.client.
But not able to find compatible x-pack-transport version in maven repo.
Our application is using maven.

I am getting the following Exception for

nested exception is java.lang.NoSuchMethodError: org.elasticsearch.common.settings.Settings$Builder.put([Ljava/lang/Object;)Lorg/elasticsearch/common/settings/Settings$Builder

In our POM

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

Did you follow all the instructions on that page? https://www.elastic.co/guide/en/elasticsearch/reference/6.8/setup-xpack-client.html

Yes. I have followed. If I mentioned 6.8.2 in the place of {version}. Then it can not able to fetch the jar. In maven repo, it is not there.
Till 5.6.1 it can able to fetch.

Did you add:

      <repository>
         <id>elasticsearch-releases</id>
         <url>https://artifacts.elastic.co/maven</url>
         <releases>
          <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>

Yes. I have added.

Regards
Avinaba

Could you share the full output of:

mvn clean dependency:tree

got the issue. it is downloading the dependencies from my company maven repo. So it is not able to download it.

The guide also mentions that case.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.