mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-05-31 01:02:12 +00:00
Initial implementation of a ReactiveElasticsearchClient using WebClient to connect to cluster nodes. ReactiveElasticsearchClient client = ElasticsearchClients.createClient() .connectedTo("http://localhost:9200", "http://localhost:9201") .reactive(); A HostProvider selects active nodes and routes requests. client.index(request -> request.index("spring-data") .type("elasticsearch") .id(randomUUID().toString()) .source(singletonMap("feature", "reactive-client")) .setRefreshPolicy(IMMEDIATE); ); This implementation provides the first building block for reactive Template and Repository support to be added subsequently. Along the lines we upgraded to Elasticsearch 6.5. Original Pull Request: #226
286 lines
9.4 KiB
XML
286 lines
9.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-elasticsearch</artifactId>
|
|
<version>3.2.0.BUILD-SNAPSHOT</version>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.data.build</groupId>
|
|
<artifactId>spring-data-parent</artifactId>
|
|
<version>2.2.0.BUILD-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<name>Spring Data Elasticsearch</name>
|
|
<description>Spring Data Implementation for Elasticsearch</description>
|
|
<url>https://github.com/spring-projects/spring-data-elasticsearch</url>
|
|
|
|
<properties>
|
|
<commonscollections>3.2.1</commonscollections>
|
|
<commonslang>2.6</commonslang>
|
|
<elasticsearch>6.5.0</elasticsearch>
|
|
<log4j>2.9.1</log4j>
|
|
<springdata.commons>2.2.0.BUILD-SNAPSHOT</springdata.commons>
|
|
<java-module-name>spring.data.elasticsearch</java-module-name>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<!-- Spring -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-tx</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SPRING DATA -->
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-commons</artifactId>
|
|
<version>${springdata.commons}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-webflux</artifactId>
|
|
<version>5.1.0.RELEASE</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.projectreactor.netty</groupId>
|
|
<artifactId>reactor-netty</artifactId>
|
|
<version>0.8.0.RELEASE</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.projectreactor</groupId>
|
|
<artifactId>reactor-test</artifactId>
|
|
<version>3.2.0.RELEASE</version>
|
|
</dependency>
|
|
|
|
<!-- APACHE -->
|
|
<dependency>
|
|
<groupId>commons-lang</groupId>
|
|
<artifactId>commons-lang</artifactId>
|
|
<version>${commonslang}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- JODA Time -->
|
|
<dependency>
|
|
<groupId>joda-time</groupId>
|
|
<artifactId>joda-time</artifactId>
|
|
<version>${jodatime}</version>
|
|
</dependency>
|
|
|
|
<!-- Elasticsearch -->
|
|
<dependency>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>transport</artifactId>
|
|
<version>${elasticsearch}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>elasticsearch-rest-high-level-client</artifactId>
|
|
<version>${elasticsearch}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
<version>${slf4j}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>${log4j}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Jackson JSON Mapper -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
|
|
<!-- CDI -->
|
|
<dependency>
|
|
<groupId>javax.enterprise</groupId>
|
|
<artifactId>cdi-api</artifactId>
|
|
<version>${cdi}</version>
|
|
<scope>provided</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- Test -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.openwebbeans.test</groupId>
|
|
<artifactId>cditest-owb</artifactId>
|
|
<version>1.2.8</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-jcdi_1.0_spec</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-atinject_1.0_spec</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- Upgrade xbean to 4.5 to prevent incompatibilities due to ASM versions -->
|
|
<dependency>
|
|
<groupId>org.apache.xbean</groupId>
|
|
<artifactId>xbean-asm5-shaded</artifactId>
|
|
<version>4.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>3.0-alpha-1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<!-- required by elasticsearch -->
|
|
<groupId>org.elasticsearch.plugin</groupId>
|
|
<artifactId>transport-netty4-client</artifactId>
|
|
<version>${elasticsearch}</version>
|
|
<!--<scope>test</scope>-->
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>wagon-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
</plugin>
|
|
<!--
|
|
please do not remove this configuration for surefire - we need that to avoid issue with jar hell
|
|
-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<useSystemClassLoader>true</useSystemClassLoader>
|
|
<useFile>false</useFile>
|
|
<includes>
|
|
<include>**/*Tests.java</include>
|
|
</includes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>release</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jfrog.buildinfo</groupId>
|
|
<artifactId>artifactory-maven-plugin</artifactId>
|
|
<inherited>false</inherited>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<developers>
|
|
<developer>
|
|
<id>biomedcentral</id>
|
|
<name>BioMed Central Development Team</name>
|
|
<timezone>+0</timezone>
|
|
</developer>
|
|
</developers>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-libs-snapshot</id>
|
|
<url>https://repo.spring.io/libs-snapshot</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>spring-plugins-release</id>
|
|
<url>https://repo.spring.io/plugins-release</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<scm>
|
|
<url>https://github.com/spring-projects/spring-data-elasticsearch</url>
|
|
<connection>scm:git:git://github.com/spring-projects/spring-data-elasticsearch.git</connection>
|
|
<developerConnection>scm:git:ssh://git@github.com/spring-projects/spring-data-elasticsearch.git
|
|
</developerConnection>
|
|
</scm>
|
|
|
|
<ciManagement>
|
|
<system>Bamboo</system>
|
|
<url>https://build.spring.io/browse/SPRINGDATAES</url>
|
|
</ciManagement>
|
|
|
|
<issueManagement>
|
|
<system>JIRA</system>
|
|
<url>https://jira.spring.io/browse/DATAES</url>
|
|
</issueManagement>
|
|
|
|
</project>
|