2014-08-12 08:55:10 -04:00
|
|
|
<?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/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
2014-10-24 07:07:36 -04:00
|
|
|
<groupId>org.elasticsearch</groupId>
|
2015-03-24 08:06:06 -04:00
|
|
|
<artifactId>elasticsearch-watcher</artifactId>
|
2015-04-23 04:35:33 -04:00
|
|
|
<version>1.0.0-Beta1-SNAPSHOT</version>
|
2014-10-24 07:07:36 -04:00
|
|
|
|
2015-04-29 12:00:56 -04:00
|
|
|
<scm>
|
|
|
|
<connection>scm:git:git@github.com:elastic/elasticsearch-watcher.git</connection>
|
|
|
|
<developerConnection>scm:git:git@github.com:elastic/elasticsearch-watcher.git</developerConnection>
|
|
|
|
<url>http://github.com/elastic/elasticsearch-watcher</url>
|
|
|
|
</scm>
|
|
|
|
|
2014-11-07 08:24:56 -05:00
|
|
|
<parent>
|
|
|
|
<groupId>org.sonatype.oss</groupId>
|
|
|
|
<artifactId>oss-parent</artifactId>
|
|
|
|
<version>7</version>
|
|
|
|
</parent>
|
2014-08-12 08:55:10 -04:00
|
|
|
|
|
|
|
<properties>
|
2015-03-26 02:59:15 -04:00
|
|
|
<elasticsearch.version>1.5.0</elasticsearch.version>
|
|
|
|
<lucene.maven.version>4.10.4</lucene.maven.version>
|
|
|
|
<lucene.version>4.10.4</lucene.version>
|
2015-04-29 20:08:27 -04:00
|
|
|
<shield.version>1.2.1</shield.version>
|
2015-03-25 11:49:18 -04:00
|
|
|
<license.version>1.0.0</license.version>
|
2014-11-07 08:24:56 -05:00
|
|
|
|
|
|
|
<tests.jvms>auto</tests.jvms>
|
|
|
|
<tests.shuffle>true</tests.shuffle>
|
|
|
|
<tests.output>onerror</tests.output>
|
|
|
|
<tests.client.ratio></tests.client.ratio>
|
|
|
|
<tests.bwc.path>${project.basedir}/backwards</tests.bwc.path>
|
|
|
|
<es.logger.level>INFO</es.logger.level>
|
|
|
|
<tests.heap.size>512m</tests.heap.size>
|
|
|
|
<tests.topn>5</tests.topn>
|
|
|
|
<execution.hint.file>.local-${project.version}-execution-hints.log</execution.hint.file>
|
2015-04-28 19:08:28 -04:00
|
|
|
<tests.rest>true</tests.rest>
|
2015-02-23 07:29:09 -05:00
|
|
|
<tests.slow>false</tests.slow>
|
2015-03-05 09:12:02 -05:00
|
|
|
<tests.timewarp>true</tests.timewarp>
|
2014-08-12 08:55:10 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
2014-10-24 06:49:33 -04:00
|
|
|
|
2014-11-07 08:29:56 -05:00
|
|
|
<!-- Test dependencies -->
|
|
|
|
|
2015-02-09 19:06:48 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.subethamail</groupId>
|
|
|
|
<artifactId>subethasmtp</artifactId>
|
|
|
|
<version>3.1.7</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2014-11-07 08:29:56 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
|
|
<artifactId>groovy-all</artifactId>
|
|
|
|
<version>2.3.2</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-test-framework</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
<version>${elasticsearch.version}</version>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.carrotsearch.randomizedtesting</groupId>
|
|
|
|
<artifactId>randomizedtesting-runner</artifactId>
|
|
|
|
<version>2.1.10</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>4.11</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2015-02-20 19:49:41 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
<version>1.9.5</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency> <!--required for mockito-->
|
|
|
|
<groupId>org.objenesis</groupId>
|
|
|
|
<artifactId>objenesis</artifactId>
|
|
|
|
<version>2.1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2015-03-26 18:03:31 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.squareup.okhttp</groupId>
|
|
|
|
<artifactId>mockwebserver</artifactId>
|
|
|
|
<version>2.3.0</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2015-03-27 10:11:38 -04:00
|
|
|
<dependency> <!-- required for rest tests -->
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
|
<version>4.3.5</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-expressions</artifactId>
|
|
|
|
<version>${lucene.maven.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
2015-05-06 15:50:18 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
<version>1.2.17</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2014-11-07 08:29:56 -05:00
|
|
|
<!-- Regular dependencies -->
|
|
|
|
|
2014-11-07 08:24:56 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
<version>${elasticsearch.version}</version>
|
2015-03-25 11:49:18 -04:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-license-plugin</artifactId>
|
|
|
|
<version>${license.version}</version>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-shield</artifactId>
|
|
|
|
<version>${shield.version}</version>
|
|
|
|
<optional>true</optional>
|
2014-11-07 08:24:56 -05:00
|
|
|
</dependency>
|
|
|
|
|
2015-04-17 09:45:16 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
|
|
|
|
<artifactId>owasp-java-html-sanitizer</artifactId>
|
|
|
|
<version>r239</version>
|
|
|
|
</dependency>
|
|
|
|
|
2015-05-03 20:53:16 -04:00
|
|
|
<dependency> <!-- required for owasp to work -->
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
<version>r05</version>
|
|
|
|
</dependency>
|
|
|
|
|
2014-11-07 08:24:56 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-core</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
2014-11-05 10:06:36 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.mail</groupId>
|
|
|
|
<artifactId>mail</artifactId>
|
|
|
|
<version>1.4.4</version>
|
2014-10-24 06:49:33 -04:00
|
|
|
</dependency>
|
|
|
|
|
2014-11-05 10:06:36 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.activation</groupId>
|
|
|
|
<artifactId>activation</artifactId>
|
|
|
|
<version>1.1.1</version>
|
|
|
|
</dependency>
|
|
|
|
|
2014-08-12 08:55:10 -04:00
|
|
|
</dependencies>
|
2015-03-25 11:49:18 -04:00
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-shield</artifactId>
|
|
|
|
<version>${shield.version}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-license-plugin</artifactId>
|
|
|
|
<version>${license.version}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.spatial4j</groupId>
|
|
|
|
<artifactId>spatial4j</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
|
|
|
|
2014-10-24 06:49:33 -04:00
|
|
|
<repositories>
|
2015-03-25 11:49:18 -04:00
|
|
|
<repository>
|
|
|
|
<id>elasticsearch-releases</id>
|
|
|
|
<url>http://maven.elasticsearch.org/releases</url>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<updatePolicy>daily</updatePolicy>
|
|
|
|
</releases>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
|
|
|
<repository>
|
|
|
|
<id>elasticsearch-snapshots</id>
|
|
|
|
<url>http://maven.elasticsearch.org/snapshots</url>
|
|
|
|
<releases>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</releases>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<updatePolicy>always</updatePolicy>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
2014-08-12 13:57:28 -04:00
|
|
|
<repository>
|
2014-10-24 06:49:33 -04:00
|
|
|
<id>maven2-repository.dev.java.net</id>
|
|
|
|
<name>Java.net Repository for Maven</name>
|
|
|
|
<url>http://download.java.net/maven/2/</url>
|
|
|
|
<layout>default</layout>
|
2014-08-12 13:57:28 -04:00
|
|
|
</repository>
|
2014-10-24 06:49:33 -04:00
|
|
|
</repositories>
|
2015-03-25 11:49:18 -04:00
|
|
|
|
2014-08-12 08:55:10 -04:00
|
|
|
<build>
|
2015-01-25 14:47:19 -05:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2015-03-27 10:11:38 -04:00
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/src/test/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*.*</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/rest-api-spec</directory>
|
|
|
|
<targetPath>rest-api-spec</targetPath>
|
|
|
|
<includes>
|
|
|
|
<include>api/*.json</include>
|
|
|
|
<include>test/**/*.yaml</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
2014-08-12 08:55:10 -04:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<version>1.3.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-versions</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireJavaVersion>
|
|
|
|
<version>[1.7,)</version>
|
|
|
|
</requireJavaVersion>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2015-01-26 03:35:21 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>2.3</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<shadeTestJar>false</shadeTestJar>
|
2015-04-23 17:37:39 -04:00
|
|
|
<minimizeJar>false</minimizeJar>
|
2015-01-26 03:35:21 -05:00
|
|
|
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
2015-04-23 17:37:39 -04:00
|
|
|
<include>com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer</include>
|
2015-05-03 20:53:16 -04:00
|
|
|
<include>com.google.guava:guava</include>
|
2015-01-26 03:35:21 -05:00
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
2015-05-03 21:06:54 -04:00
|
|
|
<relocations>
|
|
|
|
<relocation>
|
|
|
|
<pattern>com.google.common</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.watcher.common</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.owasp</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.watcher.common.owasp</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
</relocations>
|
2015-01-26 03:35:21 -05:00
|
|
|
<filters>
|
|
|
|
<filter>
|
|
|
|
<artifact>*:*</artifact>
|
|
|
|
<excludes>
|
|
|
|
<exclude>META-INF/license/**</exclude>
|
|
|
|
<exclude>META-INF/*</exclude>
|
|
|
|
<exclude>META-INF/maven/**</exclude>
|
|
|
|
<exclude>LICENSE</exclude>
|
|
|
|
<exclude>NOTICE</exclude>
|
|
|
|
<exclude>/*.txt</exclude>
|
|
|
|
<exclude>build.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
|
|
|
</filters>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-08-12 08:55:10 -04:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<configuration>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
<outputDirectory>${project.build.directory}/releases/</outputDirectory>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.1</version>
|
|
|
|
<configuration>
|
|
|
|
<source>1.7</source>
|
|
|
|
<target>1.7</target>
|
|
|
|
<fork>true</fork>
|
|
|
|
<maxmem>512m</maxmem>
|
|
|
|
<!-- REMOVE WHEN UPGRADE:
|
|
|
|
see https://jira.codehaus.org/browse/MCOMPILER-209 it's a bug where
|
|
|
|
incremental compilation doesn't work unless it's set to false causeing
|
|
|
|
recompilation of the entire codebase each time without any changes. Should
|
|
|
|
be fixed in version > 3.1
|
|
|
|
-->
|
|
|
|
<useIncrementalCompilation>false</useIncrementalCompilation>
|
2014-11-07 08:24:56 -05:00
|
|
|
<compilerArgs>
|
|
|
|
<arg>-XDignore.symbol.file</arg>
|
|
|
|
</compilerArgs>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.carrotsearch.randomizedtesting</groupId>
|
|
|
|
<artifactId>junit4-maven-plugin</artifactId>
|
|
|
|
<version>2.1.2</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>tests</id>
|
|
|
|
<phase>test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>junit4</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<heartbeat>20</heartbeat>
|
|
|
|
<jvmOutputAction>pipe,warn</jvmOutputAction>
|
|
|
|
<leaveTemporary>true</leaveTemporary>
|
|
|
|
<listeners>
|
|
|
|
<report-ant-xml mavenExtensions="true"
|
|
|
|
dir="${project.build.directory}/surefire-reports"/>
|
|
|
|
<report-text
|
|
|
|
showThrowable="true"
|
|
|
|
showStackTraces="true"
|
|
|
|
showOutput="${tests.output}"
|
|
|
|
showStatusOk="false"
|
|
|
|
showStatusError="true"
|
|
|
|
showStatusFailure="true"
|
|
|
|
showStatusIgnored="true"
|
|
|
|
showSuiteSummary="true"
|
|
|
|
timestamps="false"/>
|
|
|
|
<report-execution-times historyLength="20" file="${basedir}/${execution.hint.file}"/>
|
|
|
|
</listeners>
|
|
|
|
<assertions>
|
|
|
|
<enable/>
|
|
|
|
<disable package="${tests.assertion.disabled}"/>
|
|
|
|
<!-- pass org.elasticsearch to run without assertions -->
|
|
|
|
</assertions>
|
|
|
|
<parallelism>${tests.jvms}</parallelism>
|
|
|
|
<balancers>
|
|
|
|
<execution-times>
|
|
|
|
<fileset dir="${basedir}" includes="${execution.hint.file}"/>
|
|
|
|
</execution-times>
|
|
|
|
</balancers>
|
|
|
|
<includes>
|
|
|
|
<include>**/*Tests.class</include>
|
|
|
|
<include>**/*Test.class</include>
|
2014-11-18 06:17:00 -05:00
|
|
|
<include>**/Test*.class</include>
|
2014-11-07 08:24:56 -05:00
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/Abstract*.class</exclude>
|
|
|
|
<exclude>**/*StressTest.class</exclude>
|
|
|
|
</excludes>
|
|
|
|
<jvmArgs>
|
|
|
|
<param>-Xmx${tests.heap.size}</param>
|
|
|
|
<param>-Xms${tests.heap.size}</param>
|
|
|
|
<param>-Xss256k</param>
|
|
|
|
<param>-XX:MaxDirectMemorySize=512m</param>
|
|
|
|
<param>-Des.logger.prefix=</param>
|
|
|
|
</jvmArgs>
|
|
|
|
<shuffleOnSlave>${tests.shuffle}</shuffleOnSlave>
|
|
|
|
<sysouts>${tests.verbose}</sysouts>
|
|
|
|
<seed>${tests.seed}</seed>
|
|
|
|
<haltOnFailure>${tests.failfast}</haltOnFailure>
|
|
|
|
<uniqueSuiteNames>false</uniqueSuiteNames>
|
|
|
|
<systemProperties>
|
|
|
|
<java.io.tmpdir>.</java.io.tmpdir>
|
|
|
|
<!-- we use '.' since this is different per JVM-->
|
|
|
|
<!-- RandomizedTesting library system properties -->
|
|
|
|
<tests.bwc>${tests.bwc}</tests.bwc>
|
|
|
|
<tests.bwc.path>${tests.bwc.path}</tests.bwc.path>
|
|
|
|
<tests.bwc.version>${tests.bwc.version}</tests.bwc.version>
|
|
|
|
<tests.jvm.argline>${tests.jvm.argline}</tests.jvm.argline>
|
|
|
|
<tests.processors>${tests.processors}</tests.processors>
|
|
|
|
<tests.appendseed>${tests.appendseed}</tests.appendseed>
|
|
|
|
<tests.iters>${tests.iters}</tests.iters>
|
|
|
|
<tests.maxfailures>${tests.maxfailures}</tests.maxfailures>
|
|
|
|
<tests.failfast>${tests.failfast}</tests.failfast>
|
|
|
|
<tests.class>${tests.class}</tests.class>
|
|
|
|
<tests.method>${tests.method}</tests.method>
|
|
|
|
<tests.nightly>${tests.nightly}</tests.nightly>
|
|
|
|
<tests.verbose>${tests.verbose}</tests.verbose>
|
|
|
|
<tests.badapples>${tests.badapples}</tests.badapples>
|
|
|
|
<tests.weekly>${tests.weekly}</tests.weekly>
|
|
|
|
<tests.slow>${tests.slow}</tests.slow>
|
|
|
|
<tests.awaitsfix>${tests.awaitsfix}</tests.awaitsfix>
|
|
|
|
<tests.slow>${tests.slow}</tests.slow>
|
|
|
|
<tests.timeoutSuite>${tests.timeoutSuite}</tests.timeoutSuite>
|
|
|
|
<tests.showSuccess>${tests.showSuccess}</tests.showSuccess>
|
|
|
|
<tests.integration>${tests.integration}</tests.integration>
|
|
|
|
<tests.client.ratio>${tests.client.ratio}</tests.client.ratio>
|
|
|
|
<tests.enable_mock_modules>${tests.enable_mock_modules}</tests.enable_mock_modules>
|
|
|
|
<tests.assertion.disabled>${tests.assertion.disabled}</tests.assertion.disabled>
|
|
|
|
<tests.rest>${tests.rest}</tests.rest>
|
|
|
|
<tests.rest.suite>${tests.rest.suite}</tests.rest.suite>
|
|
|
|
<tests.rest.blacklist>${tests.rest.blacklist}</tests.rest.blacklist>
|
|
|
|
<tests.rest.spec>${tests.rest.spec}</tests.rest.spec>
|
|
|
|
<tests.network>${tests.network}</tests.network>
|
|
|
|
<tests.cluster>${tests.cluster}</tests.cluster>
|
|
|
|
<tests.heap.size>${tests.heap.size}</tests.heap.size>
|
|
|
|
<tests.filter>${tests.filter}</tests.filter>
|
2015-03-05 09:12:02 -05:00
|
|
|
<tests.timewarp>${tests.timewarp}</tests.timewarp>
|
2014-11-07 08:24:56 -05:00
|
|
|
<es.node.local>${env.ES_TEST_LOCAL}</es.node.local>
|
|
|
|
<es.node.mode>${es.node.mode}</es.node.mode>
|
|
|
|
<es.logger.level>${es.logger.level}</es.logger.level>
|
|
|
|
<tests.security.manager>${tests.security.manager}</tests.security.manager>
|
|
|
|
<tests.compatibility>${tests.compatibility}</tests.compatibility>
|
|
|
|
<java.awt.headless>true</java.awt.headless>
|
|
|
|
<!-- everything below is for security manager / test.policy -->
|
|
|
|
<junit4.tempDir>${project.build.directory}</junit4.tempDir>
|
|
|
|
<java.security.policy>${basedir}/tests.policy</java.security.policy>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<!-- we skip surefire to work with randomized testing above -->
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.16</version>
|
|
|
|
<configuration>
|
|
|
|
<skipTests>true</skipTests>
|
2014-08-12 08:55:10 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2015-01-25 14:47:19 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>create</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<doCheck>false</doCheck>
|
|
|
|
<doUpdate>false</doUpdate>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2015-02-17 10:31:18 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>de.thetaphi</groupId>
|
|
|
|
<artifactId>forbiddenapis</artifactId>
|
|
|
|
<version>1.6.1</version>
|
2015-01-25 14:47:19 -05:00
|
|
|
|
2015-02-17 10:31:18 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>check-forbidden-apis</id>
|
|
|
|
<configuration>
|
|
|
|
<targetVersion>1.7</targetVersion>
|
|
|
|
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
|
|
|
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
|
|
|
<!-- if the used Java version is too new, don't fail, just do nothing: -->
|
|
|
|
<failOnUnsupportedJava>false</failOnUnsupportedJava>
|
|
|
|
<excludes>
|
|
|
|
<exclude>jsr166e/**</exclude>
|
|
|
|
<exclude>
|
|
|
|
org/elasticsearch/common/lucene/search/Queries$QueryWrapperFilterFactory.class
|
|
|
|
</exclude>
|
|
|
|
<!-- end excludes for valid system-out -->
|
|
|
|
<!-- start excludes for Unsafe -->
|
|
|
|
<exclude>org/elasticsearch/common/util/UnsafeUtils.class</exclude>
|
|
|
|
<!-- end excludes for Unsafe -->
|
|
|
|
<!-- start excludes for Math.abs -->
|
|
|
|
<exclude>org/elasticsearch/common/util/MathUtils.class</exclude>
|
|
|
|
<exclude>org/elasticsearch/common/math/UnboxedMathUtils.class</exclude>
|
|
|
|
<exclude>org/elasticsearch/cluster/routing/operation/plain/PlainOperationRouting.class
|
|
|
|
</exclude>
|
|
|
|
<!-- end excludes for Math.abs -->
|
|
|
|
<!-- start exclude for FilteredQuery -->
|
|
|
|
<exclude>org/elasticsearch/common/lucene/search/XFilteredQuery.class</exclude>
|
|
|
|
<!-- end exclude for FilteredQuery -->
|
|
|
|
<!-- start exclude for Channels utility class -->
|
|
|
|
<exclude>org/elasticsearch/common/io/Channels.class</exclude>
|
|
|
|
<!-- end exclude for Channels -->
|
|
|
|
</excludes>
|
|
|
|
<bundledSignatures>
|
|
|
|
<!-- This will automatically choose the right signatures based on 'targetVersion': -->
|
|
|
|
<bundledSignature>jdk-unsafe</bundledSignature>
|
|
|
|
<bundledSignature>jdk-deprecated</bundledSignature>
|
|
|
|
<bundledSignature>jdk-system-out</bundledSignature>
|
|
|
|
</bundledSignatures>
|
|
|
|
<signaturesFiles>
|
|
|
|
<signaturesFile>core-signatures.txt</signaturesFile>
|
|
|
|
<signaturesFile>all-signatures.txt</signaturesFile>
|
|
|
|
</signaturesFiles>
|
|
|
|
<!--<signatures>${forbidden.signatures}</signatures>-->
|
|
|
|
</configuration>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>check-forbidden-test-apis</id>
|
|
|
|
<configuration>
|
|
|
|
<targetVersion>1.7</targetVersion>
|
|
|
|
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
|
|
|
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
|
|
|
<!-- if the used Java version is too new, don't fail, just do nothing: -->
|
|
|
|
<failOnUnsupportedJava>false</failOnUnsupportedJava>
|
|
|
|
<bundledSignatures>
|
|
|
|
<!-- This will automatically choose the right signatures based on 'targetVersion': -->
|
|
|
|
<bundledSignature>jdk-unsafe</bundledSignature>
|
|
|
|
<bundledSignature>jdk-deprecated</bundledSignature>
|
|
|
|
</bundledSignatures>
|
|
|
|
<signaturesFiles>
|
|
|
|
<signaturesFile>test-signatures.txt</signaturesFile>
|
|
|
|
<signaturesFile>all-signatures.txt</signaturesFile>
|
|
|
|
</signaturesFiles>
|
|
|
|
<!--<signatures>${forbidden.test.signatures}</signatures>-->
|
|
|
|
</configuration>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>testCheck</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2014-08-12 08:55:10 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2014-10-24 13:16:03 -04:00
|
|
|
<profiles>
|
2014-11-07 05:38:43 -05:00
|
|
|
<profile>
|
|
|
|
<id>default</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.mycila</groupId>
|
|
|
|
<artifactId>license-maven-plugin</artifactId>
|
|
|
|
<version>2.5</version>
|
|
|
|
<configuration>
|
|
|
|
<header>dev-tools/elasticsearch_license_header.txt</header>
|
|
|
|
<headerDefinitions>
|
|
|
|
<headerDefinition>dev-tools/license_header_definition.xml</headerDefinition>
|
|
|
|
</headerDefinitions>
|
|
|
|
<includes>
|
|
|
|
<include>src/main/java/org/elasticsearch/**/*.java</include>
|
|
|
|
<include>src/test/java/org/elasticsearch/**/*.java</include>
|
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2014-10-24 13:16:03 -04:00
|
|
|
<profile>
|
|
|
|
<id>coverage</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>tests.coverage</name>
|
|
|
|
<value>true</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<!-- must be on the classpath -->
|
|
|
|
<groupId>org.jacoco</groupId>
|
|
|
|
<artifactId>org.jacoco.agent</artifactId>
|
|
|
|
<classifier>runtime</classifier>
|
|
|
|
<version>0.6.4.201312101107</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.jacoco</groupId>
|
|
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
|
|
<version>0.6.4.201312101107</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>default-prepare-agent</id>
|
|
|
|
<goals>
|
|
|
|
<goal>prepare-agent</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>default-report</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>report</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>default-check</id>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<excludes/>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2014-08-12 08:55:10 -04:00
|
|
|
</project>
|