Application throws java.lang.ClassNotFoundException: org.elasticsearch.plugins.NetworkPlugin. In the pom I added two dependencies:
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>6.1.1</version>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>6.1.1</version>
</dependency>
private static final String SERVER_IP = "127.0.0.1";
private static final Integer SERVER_PORT = 9300;
@Bean
public TransportClient transportClient() throws UnknownHostException {
return new PreBuiltTransportClient(Settings.EMPTY).addTransportAddress(
new TransportAddress(InetAddress.getByName(SERVER_IP), SERVER_PORT));;
}
Before this post I deleted all files inside .m2 folder and reimport all dependencies. Anybody has idea where can be a problem?
Today I focused on available maven repository for this project and found two different dependencies, but I can't find older version in maven pom. I attach image with print screen: ibb.co/mUgU4G . Older elasticsearch version is marked as parent and is a third party pom. Thank you for reply 