repository-elasticsearch
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.eclipse.vorto</groupId> <artifactId>repository-elasticsearch</artifactId> <version>1.0.0</version> </dependency>
<!-- Copyright (c) 2020 Contributors to the Eclipse Foundation See the NOTICE file(s) distributed with this work for additional information regarding copyright ownership. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0 SPDX-License-Identifier: EPL-2.0 --> <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> <parent> <groupId>org.eclipse.vorto</groupId> <artifactId>repository</artifactId> <version>1.0.0</version> </parent> <artifactId>repository-elasticsearch</artifactId> <packaging>jar</packaging> <dependencies> <dependency> <groupId>org.eclipse.vorto</groupId> <artifactId>repository-core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>${elasticsearch.version}</version> </dependency> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>${elasticsearch.version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>1.10.19</version> <scope>test</scope> </dependency> <!-- Spins up an ElasticSearch server at runtime, for tests --> <dependency> <groupId>pl.allegro.tech</groupId> <artifactId>embedded-elasticsearch</artifactId> <version>2.10.0</version> <scope>test</scope> </dependency> <!-- Required by Allegro above, due to some signature usage incompatible with 2.2 (currently in use in the parent. --> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.6</version> <scope>test</scope> </dependency> <!-- Required by ES spin up by Allegro --> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-core</artifactId> <version>7.7.2</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!-- Required to import models in tests --> <plugin> <groupId>org.eclipse.xtend</groupId> <artifactId>xtend-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <executions> <execution> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> <!-- Use the dependency plugin to download the embedded elasticsearch artifact via maven--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.1.1</version> <executions> <execution> <id>copy-elasticsearchdistr</id> <phase>process-test-classes</phase> <goals> <goal>copy</goal> </goals> </execution> </executions> <configuration> <artifactItems> <artifactItem> <groupId>org.elasticsearch.distribution.zip</groupId> <artifactId>elasticsearch-oss</artifactId> <version>${elasticsearch.version}</version> <type>zip</type> <overWrite>false</overWrite> <outputDirectory>${project.build.directory}/test-classes</outputDirectory> <destFileName>elasticsearch-${elasticsearch.version}.zip</destFileName> </artifactItem> </artifactItems> </configuration> </plugin> </plugins> </build> </project>