Skip to content

Instantly share code, notes, and snippets.

@alexcojocaru
Last active November 2, 2016 22:55
Show Gist options
  • Save alexcojocaru/97d44965964ab170f41b2462c9e4bbb8 to your computer and use it in GitHub Desktop.
Save alexcojocaru/97d44965964ab170f41b2462c9e4bbb8 to your computer and use it in GitHub Desktop.
<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-test</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>elasticsearch-maven-plugin-test</name>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.alexcojocaru</groupId>
<artifactId>elasticsearch-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<clusterName>test</clusterName>
<tcpPort>9300</tcpPort>
<httpPort>9200</httpPort>
</configuration>
<executions>
<execution>
<id>start-elasticsearch</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</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.1</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