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>