If you go to the most recent Java API docs it says to use Maven Central. However Maven Central appears to be missing the x-pack-transport.
<dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>x-pack-transport</artifactId> <version>5.1.1</version> </dependency>
I've come across other docs that recommend https://maven.elasticsearch.org/releases.
I suspect the latest recommendations are to use Maven Central, so if that's the case it should probably be made sure that the x-pack-transport artifact makes its way into there.
Either way, some guidance would be appreciated. Thanks!