2014-11-21 18:45:42 -05: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">
|
|
|
|
<parent>
|
|
|
|
<artifactId>elasticsearch-license</artifactId>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
2015-01-21 14:40:09 -05:00
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
2014-11-21 18:45:42 -05:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>elasticsearch-license-plugin</artifactId>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- TODO: do we want to always enforce non-default keys -->
|
|
|
|
<keys.path>${basedir}/src/test/resources</keys.path>
|
|
|
|
<license.basedir combine.self="override">${project.parent.basedir}</license.basedir>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-license-licensor</artifactId>
|
2015-01-21 14:40:09 -05:00
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
2014-11-21 18:45:42 -05:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-license-core</artifactId>
|
2015-01-21 14:40:09 -05:00
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
2014-11-21 18:45:42 -05:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${keys.path}</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>public.key</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<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>true</shadeTestJar>
|
|
|
|
<minimizeJar>true</minimizeJar>
|
|
|
|
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>org.elasticsearch:elasticsearch-license-core</include>
|
|
|
|
<include>org.elasticsearch:elasticsearch-license-core-shaded</include>
|
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
|
|
|
<relocations>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.elasticsearch.license</pattern>
|
|
|
|
<shadedPattern>org.elasticsearch.license</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
</relocations>
|
|
|
|
<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>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/releases/</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>plugin</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${basedir}/src/main/assemblies/plugin.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>
|
|
|
|
<!-- TODO: do we want to always enforce non-default keys -->
|
|
|
|
<execution>
|
|
|
|
<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>
|
|
|
|
<requireFilesExist>
|
|
|
|
<files>
|
|
|
|
<file>${keys.path}/public.key</file>
|
|
|
|
</files>
|
|
|
|
<message>"public.key file does not exist in ${keys.path} directory!"</message>
|
|
|
|
</requireFilesExist>
|
|
|
|
</rules>
|
|
|
|
<fail>true</fail>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</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>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</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>
|
|
|
|
<dir>${project.basedir}/target</dir>
|
|
|
|
<classesDirectory>${project.basedir}/target/classes</classesDirectory>
|
|
|
|
<heartbeat>40</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>
|
|
|
|
</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:MaxPermSize=128m</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>
|
|
|
|
<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>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
</build>
|
|
|
|
</project>
|