mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 06:55:32 +00:00
When https://github.com/elastic/elasticsearch/pull/12879 will be merged, this commit should be merged as well. ``` [INFO] Reactor Summary: [INFO] [INFO] Elasticsearch Commercial Plugin Build Resources .... SUCCESS [ 0.228 s] [INFO] Elasticsearch X-Plugins - Parent POM ............... SUCCESS [ 0.282 s] [INFO] X-Plugins: License: Parent POM ..................... SUCCESS [ 0.089 s] [INFO] X-Plugins: License: Core ........................... SUCCESS [ 0.118 s] [INFO] X-Plugins: License: Licensor ....................... SUCCESS [ 0.150 s] [INFO] X-Plugins: License: Plugin API ..................... SUCCESS [ 0.106 s] [INFO] X-Plugins: License: Plugin ......................... SUCCESS [ 0.112 s] [INFO] X-Plugins: Shield .................................. SUCCESS [ 0.234 s] [INFO] X-Plugins: Watcher ................................. SUCCESS [ 0.264 s] [INFO] X-Plugins: Marvel .................................. SUCCESS [ 0.113 s] [INFO] QA: Parent POM ..................................... SUCCESS [ 0.097 s] [INFO] QA: Smoke Test X-Plugins ........................... SUCCESS [ 0.107 s] [INFO] QA: Shield core REST tests ......................... SUCCESS [ 0.093 s] [INFO] QA: Smoke Test Watcher's Shield integration ........ SUCCESS [ 0.109 s] ``` Original commit: elastic/x-pack-elasticsearch@e9871261cf
205 lines
8.0 KiB
XML
205 lines
8.0 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>
|
|
|
|
<artifactId>watcher</artifactId>
|
|
<name>X-Plugins: Watcher</name>
|
|
<description>Elasticsearch Watcher</description>
|
|
|
|
<parent>
|
|
<groupId>org.elasticsearch.plugin</groupId>
|
|
<artifactId>x-plugins</artifactId>
|
|
<version>2.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<!-- TODO: try to avoid this... -->
|
|
<elasticsearch.assembly.descriptor>${basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
|
|
<elasticsearch.plugin.classname>org.elasticsearch.watcher.WatcherPlugin</elasticsearch.plugin.classname>
|
|
<!-- TODO: fix plugin dependencies for full isolation -->
|
|
<elasticsearch.plugin.isolated>false</elasticsearch.plugin.isolated>
|
|
<elasticsearch.integ.antfile>dev-tools/integration-tests.xml</elasticsearch.integ.antfile>
|
|
<tests.rest.load_packaged>false</tests.rest.load_packaged>
|
|
<tests.timewarp>true</tests.timewarp>
|
|
<tests.rest.blacklist>hijack/10_basic/*</tests.rest.blacklist>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Test dependencies -->
|
|
<dependency>
|
|
<groupId>org.subethamail</groupId>
|
|
<artifactId>subethasmtp</artifactId>
|
|
<version>3.1.7</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp</groupId>
|
|
<artifactId>mockwebserver</artifactId>
|
|
<version>2.3.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Regular dependencies -->
|
|
|
|
<dependency>
|
|
<groupId>org.elasticsearch.plugin</groupId>
|
|
<artifactId>license</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.elasticsearch.plugin</groupId>
|
|
<artifactId>shield</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
|
|
<artifactId>owasp-java-html-sanitizer</artifactId>
|
|
<version>r239</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.mail</groupId>
|
|
<artifactId>javax.mail</artifactId>
|
|
<version>1.5.3</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.activation</groupId>
|
|
<artifactId>activation</artifactId>
|
|
<version>1.1.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.subethamail</groupId>
|
|
<artifactId>subethasmtp</artifactId>
|
|
<version>3.1.7</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>javax.mail</groupId>
|
|
<artifactId>mail</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<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>
|
|
<!-- REST API specifications copied from main Elasticsearch specs
|
|
because they are required to execute the Watcher REST tests -->
|
|
<testResource>
|
|
<directory>${elasticsearch.tools.directory}/rest-api-spec</directory>
|
|
<targetPath>rest-api-spec</targetPath>
|
|
<includes>
|
|
<!-- required by the test framework -->
|
|
<include>api/info.json</include>
|
|
<include>api/cluster.health.json</include>
|
|
<include>api/cluster.state.json</include>
|
|
<!-- used by Watcher REST tests -->
|
|
<include>api/index.json</include>
|
|
<include>api/get.json</include>
|
|
<include>api/delete.json</include>
|
|
<include>api/delete-by-query.json</include>
|
|
<include>api/bulk.json</include>
|
|
<include>api/update.json</include>
|
|
<include>api/search.json</include>
|
|
<include>api/indices.delete.json</include>
|
|
<include>api/indices.refresh.json</include>
|
|
</includes>
|
|
</testResource>
|
|
<!-- REST API specification and test suites -->
|
|
<!-- Copied this from plugins parent module, because filtering needs to be enabled -->
|
|
<testResource>
|
|
<directory>${project.basedir}/rest-api-spec</directory>
|
|
<targetPath>rest-api-spec</targetPath>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>api/*.json</include>
|
|
<include>test/**/*.yaml</include>
|
|
</includes>
|
|
</testResource>
|
|
</testResources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.carrotsearch.randomizedtesting</groupId>
|
|
<artifactId>junit4-maven-plugin</artifactId>
|
|
<configuration>
|
|
<systemProperties>
|
|
<tests.timewarp>${tests.timewarp}</tests.timewarp>
|
|
</systemProperties>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>integ-setup-dependencies</id>
|
|
<phase>pre-integration-test</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems combine.children="append">
|
|
<artifactItem>
|
|
<groupId>org.elasticsearch.plugin</groupId>
|
|
<artifactId>license</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>zip</type>
|
|
<overWrite>true</overWrite>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<useBaseVersion>true</useBaseVersion>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|