151 lines
5.8 KiB
XML
151 lines
5.8 KiB
XML
|
<?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>
|
||
|
<version>1.0-SNAPSHOT</version>
|
||
|
|
||
|
<properties>
|
||
|
<elasticsearch.version>1.4.0-SNAPSHOT</elasticsearch.version>
|
||
|
</properties>
|
||
|
|
||
|
<dependencies>
|
||
|
|
||
|
<!-- test deps -->
|
||
|
<dependency>
|
||
|
<groupId>org.elasticsearch</groupId>
|
||
|
<artifactId>elasticsearch</artifactId>
|
||
|
<version>${elasticsearch.version}</version>
|
||
|
<scope>test</scope>
|
||
|
<type>test-jar</type>
|
||
|
</dependency>
|
||
|
|
||
|
<dependency>
|
||
|
<groupId>junit</groupId>
|
||
|
<artifactId>junit</artifactId>
|
||
|
<version>4.11</version>
|
||
|
<scope>test</scope>
|
||
|
</dependency>
|
||
|
|
||
|
<!-- 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.codehaus.jackson</groupId>
|
||
|
<artifactId>jackson-mapper-asl</artifactId>
|
||
|
<version>1.8.5</version>
|
||
|
</dependency>
|
||
|
|
||
|
<dependency>
|
||
|
<groupId>org.elasticsearch</groupId>
|
||
|
<artifactId>elasticsearch</artifactId>
|
||
|
<version>${elasticsearch.version}</version>
|
||
|
</dependency>
|
||
|
|
||
|
</dependencies>
|
||
|
|
||
|
<build>
|
||
|
<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>
|
||
|
<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>
|
||
|
<includes>
|
||
|
<include>**/*Tests.java</include>
|
||
|
</includes>
|
||
|
</configuration>
|
||
|
</plugin>
|
||
|
<!-- ============================================================= -->
|
||
|
<!-- This plugin assembles plugin .zip package. -->
|
||
|
<!-- ============================================================= -->
|
||
|
<plugin>
|
||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||
|
<version>2.3</version>
|
||
|
<configuration>
|
||
|
<appendAssemblyId>false</appendAssemblyId>
|
||
|
<outputDirectory>${project.build.directory}/releases/</outputDirectory>
|
||
|
<descriptors>
|
||
|
<descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
|
||
|
</descriptors>
|
||
|
<descriptorRefs>
|
||
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||
|
</descriptorRefs>
|
||
|
</configuration>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<phase>package</phase>
|
||
|
<goals>
|
||
|
<goal>attached</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
<execution>
|
||
|
<id>assemble-all</id>
|
||
|
<phase>package</phase>
|
||
|
<goals>
|
||
|
<goal>single</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
</plugins>
|
||
|
</build>
|
||
|
|
||
|
</project>
|