Kibana and Elasticsearch compatibility with Spring Boot Starter -
i´m using spring boot starter 1.2.5
, kibana 4.1.1
, getting error due incompatible versions. question is: how update elastic search
version eventhough using latest spring boot starter
version?
this of pom file:
<!--- ... ---> <parent> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-parent</artifactid> <version>1.2.5.release</version> <relativepath/> </parent> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <java.version>1.7</java.version> </properties> <dependencies> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-data-elasticsearch</artifactid> </dependency> <!-- --> </dependencies>
i guess fixed overriding version number of of transitive dependencies of spring-starter-data-elasticseach
have no idea how that.
update: have made work hard-coding elastic search dependency:
<dependency> <groupid>org.elasticsearch</groupid> <artifactid>elasticsearch</artifactid> <version>1.7.0</version> </dependency>
however, not confortable @ fix. there other cleaner way this?
if check pom.xml spring data elasticsearch injects version "elasticsearch" property:
<dependency> <groupid>org.elasticsearch</groupid> <artifactid>elasticsearch</artifactid> <version>${elasticsearch}</version> </dependency>
to override default version can set property in pom.xml:
<properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <java.version>1.7</java.version> <elasticsearch>1.7.0</elasticsearch> </properties>
Comments
Post a Comment