2014-10-01 11:39:01 -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>
|
|
|
|
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-license</artifactId>
|
2014-10-23 22:02:26 -04:00
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.sonatype.oss</groupId>
|
|
|
|
<artifactId>oss-parent</artifactId>
|
|
|
|
<version>7</version>
|
|
|
|
</parent>
|
2014-10-01 11:39:01 -04:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<elasticsearch.version>1.4.0-SNAPSHOT</elasticsearch.version>
|
2014-10-29 19:45:40 -04:00
|
|
|
<lucene.version>4.10.2</lucene.version>
|
2014-10-23 22:02:26 -04:00
|
|
|
<!-- TODO: do we want to always enforce non-default keys -->
|
2014-10-21 22:35:11 -04:00
|
|
|
<keys.path>${basedir}/src/test/resources</keys.path>
|
2014-10-01 11:39:01 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<!-- test deps -->
|
2014-10-03 10:39:50 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-test-framework</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-01 11:39:01 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
<version>${elasticsearch.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
2014-10-03 10:39:50 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-01 11:39:01 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>4.11</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-03 10:39:50 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.carrotsearch.randomizedtesting</groupId>
|
|
|
|
<artifactId>randomizedtesting-runner</artifactId>
|
2014-10-29 19:45:40 -04:00
|
|
|
<version>2.1.10</version>
|
2014-10-03 10:39:50 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2014-10-01 11:39:01 -04:00
|
|
|
|
2014-10-05 23:44:44 -04:00
|
|
|
<!-- compile deps -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-core</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-analyzers-common</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-queries</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-memory</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-highlighter</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-queryparser</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-suggest</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-join</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2014-10-01 11:39:01 -04:00
|
|
|
<!-- actual deps -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.nicholaswilliams.java.licensing</groupId>
|
|
|
|
<artifactId>licensing-core</artifactId>
|
|
|
|
<version>1.1.0</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.nicholaswilliams.java.licensing</groupId>
|
|
|
|
<artifactId>licensing-licensor-base</artifactId>
|
|
|
|
<version>1.1.0</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
<version>${elasticsearch.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
2014-10-21 22:35:11 -04:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${keys.path}</directory>
|
2014-10-23 22:02:26 -04:00
|
|
|
<filtering>false</filtering>
|
2014-10-21 22:35:11 -04:00
|
|
|
<includes>
|
|
|
|
<include>public.key</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2014-10-01 11:39:01 -04:00
|
|
|
<plugins>
|
|
|
|
<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>
|
|
|
|
<compilerArgs>
|
|
|
|
<arg>-XDignore.symbol.file</arg>
|
|
|
|
</compilerArgs>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!-- ============================================================= -->
|
|
|
|
<!-- Optional. This plugin is using surefire plugin to run tests. -->
|
|
|
|
<!-- ============================================================= -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.16</version>
|
|
|
|
<configuration>
|
2014-10-02 01:55:51 -04:00
|
|
|
<forkCount>1</forkCount>
|
|
|
|
<reuseForks>false</reuseForks>
|
2014-10-01 11:39:01 -04:00
|
|
|
<includes>
|
|
|
|
<include>**/*Tests.java</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!-- ============================================================= -->
|
|
|
|
<!-- This plugin assembles plugin .zip package. -->
|
|
|
|
<!-- ============================================================= -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
2014-10-21 22:35:11 -04:00
|
|
|
<version>2.4</version>
|
2014-10-01 11:39:01 -04:00
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/releases/</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2014-10-21 22:35:11 -04:00
|
|
|
<id>plugin</id>
|
2014-10-01 11:39:01 -04:00
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
2014-10-21 22:35:11 -04:00
|
|
|
<goal>single</goal>
|
2014-10-01 11:39:01 -04:00
|
|
|
</goals>
|
2014-10-21 22:35:11 -04:00
|
|
|
<configuration>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
</configuration>
|
2014-10-01 11:39:01 -04:00
|
|
|
</execution>
|
|
|
|
<execution>
|
2014-10-21 22:35:11 -04:00
|
|
|
<id>exec</id>
|
2014-10-01 11:39:01 -04:00
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
2014-10-21 22:35:11 -04:00
|
|
|
<configuration>
|
|
|
|
<appendAssemblyId>true</appendAssemblyId>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${basedir}/src/main/assemblies/exec.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<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>
|
|
|
|
<!-- TODO: do we want to always enforce non-default keys -->
|
2014-10-23 22:02:26 -04:00
|
|
|
<execution>
|
2014-10-21 22:35:11 -04:00
|
|
|
<id>enforce-property</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
|
|
|
<property>keys.path</property>
|
|
|
|
<message>"You must set a keys.path property!"</message>
|
|
|
|
</requireProperty>
|
|
|
|
</rules>
|
|
|
|
<fail>true</fail>
|
|
|
|
</configuration>
|
2014-10-23 22:02:26 -04:00
|
|
|
</execution>
|
2014-10-21 22:35:11 -04:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>for-plugin</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<!-- exclude license generation classes -->
|
|
|
|
<exclude>org/elasticsearch/license/licensor/**/*</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>for-exec</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classifier>exec</classifier>
|
|
|
|
<excludes>
|
|
|
|
<!-- exclude public key -->
|
|
|
|
<exclude>public.key</exclude>
|
|
|
|
<!-- exclude plugin-related classes -->
|
2014-10-23 22:02:26 -04:00
|
|
|
<exclude>es-plugin.properties</exclude>
|
2014-10-21 22:35:11 -04:00
|
|
|
<exclude>org/elasticsearch/license/plugin/**/*</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
2014-10-01 11:39:01 -04:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|