Created
January 25, 2017 22:06
-
-
Save alexcojocaru/315f9a575b9139338ae3676b227b6b29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.github.alexcojocaru</groupId> | |
<artifactId>elasticsearch-maven-plugin-2.3</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>elasticsearch-maven-plugin-2.3</name> | |
<url>http://maven.apache.org</url> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>3.8.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.github.alexcojocaru</groupId> | |
<artifactId>elasticsearch-maven-plugin</artifactId> | |
<version>2.3</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.19.1</version> | |
<configuration> | |
<includes> | |
<include>**/*Test.java</include> | |
</includes> | |
<excludes> | |
<exclude>**/*IntegrationTest.java</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<version>2.19.1</version> | |
<configuration> | |
<includes> | |
<include>**/*IntegrationTest.java</include> | |
</includes> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>integration-test</goal> | |
<goal>verify</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>properties-maven-plugin</artifactId> | |
<version>1.0.0</version> | |
<executions> | |
<execution> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>set-system-properties</goal> | |
</goals> | |
<configuration> | |
<properties> | |
<property> | |
<name>mapper.allow_dots_in_name</name> | |
<value>true</value> | |
</property> | |
</properties> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>com.github.alexcojocaru</groupId> | |
<artifactId>elasticsearch-maven-plugin</artifactId> | |
<version>2.4-SNAPSHOT</version> | |
<configuration> | |
<clusterName>test</clusterName> | |
<tcpPort>9300</tcpPort> | |
<httpPort>9200</httpPort> | |
<autoCreateIndex>true</autoCreateIndex> | |
</configuration> | |
<executions> | |
<execution> | |
<id>start-elasticsearch</id> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>start</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>deploy-json</id> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>load</goal> | |
</goals> | |
<configuration> | |
<scriptFile>src/test/resources/elasticsearch.script</scriptFile> | |
</configuration> | |
</execution> | |
<execution> | |
<id>stop-elasticsearch</id> | |
<phase>post-integration-test</phase> | |
<goals> | |
<goal>stop</goal> | |
</goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.elasticsearch</groupId> | |
<artifactId>elasticsearch</artifactId> | |
<version>2.4.4</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment