forked from hugegraph/hugegraph-sync
340 lines
15 KiB
XML
340 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!--
|
||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||
contributor license agreements. See the NOTICE file distributed with
|
||
this work for additional information regarding copyright ownership.
|
||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||
(the "License"); you may not use this file except in compliance with
|
||
the License. You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
|
||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<parent>
|
||
<artifactId>hugegraph-store</artifactId>
|
||
<groupId>org.apache.hugegraph</groupId>
|
||
<version>${revision}</version>
|
||
<relativePath>../pom.xml</relativePath>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>hg-store-test</artifactId>
|
||
|
||
<properties>
|
||
<!--maven.test.skip>true</maven.test.skip-->
|
||
<log4j2.version>2.15.0</log4j2.version>
|
||
<lombok.version>1.18.20</lombok.version>
|
||
</properties>
|
||
|
||
<profiles>
|
||
<profile>
|
||
<id>jacoco</id>
|
||
<activation>
|
||
<activeByDefault>false</activeByDefault>
|
||
</activation>
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.jacoco</groupId>
|
||
<artifactId>jacoco-maven-plugin</artifactId>
|
||
<version>0.8.4</version>
|
||
|
||
<executions>
|
||
<execution>
|
||
<id>default</id>
|
||
<phase>verify</phase>
|
||
<goals>
|
||
<goal>report-aggregate</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${project.basedir}/../target/site/jacoco
|
||
</outputDirectory>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</profile>
|
||
</profiles>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.apache.hugegraph</groupId>
|
||
<artifactId>hg-store-grpc</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.hugegraph</groupId>
|
||
<artifactId>hg-store-common</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>${lombok.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.logging.log4j</groupId>
|
||
<artifactId>log4j-slf4j-impl</artifactId>
|
||
<version>${log4j2.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.hugegraph</groupId>
|
||
<artifactId>hg-pd-client</artifactId>
|
||
<version>${revision}</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>*</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>org.apache.hugegraph</groupId>-->
|
||
<!-- <artifactId>hg-store-core</artifactId>-->
|
||
<!-- </dependency>-->
|
||
<dependency>
|
||
<groupId>org.apache.hugegraph</groupId>
|
||
<artifactId>hg-pd-grpc</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.7</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-databind</artifactId>
|
||
<version>2.13.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>4.13.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.google.protobuf</groupId>
|
||
<artifactId>protobuf-java-util</artifactId>
|
||
<version>3.17.2</version>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-context-support</artifactId>
|
||
<version>5.3.20</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-test</artifactId>
|
||
<version>5.3.20</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-core</artifactId>
|
||
<version>2.13.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-annotations</artifactId>
|
||
<version>2.13.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<version>2.5.14</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-logging</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-classloading-xstream</artifactId>
|
||
<version>2.0.0-RC.3</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-module-junit4-rule</artifactId>
|
||
<version>2.0.0-RC.3</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-api-support</artifactId>
|
||
<version>2.0.0-RC.3</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-module-junit4</artifactId>
|
||
<version>2.0.0-RC.3</version>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-api-mockito2</artifactId>
|
||
<version>2.0.0-RC.3</version>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.hugegraph</groupId>
|
||
<artifactId>hg-store-client</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.alipay.sofa</groupId>
|
||
<artifactId>jraft-core</artifactId>
|
||
<version>1.3.9</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.rocksdb</groupId>
|
||
<artifactId>rocksdbjni</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>org.apache.hugegraph</groupId>-->
|
||
<!-- <artifactId>hg-store-node</artifactId>-->
|
||
<!-- <version>${revision}</version>-->
|
||
<!-- <scope>compile</scope>-->
|
||
<!-- </dependency>-->
|
||
</dependencies>
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<version>2.20</version>
|
||
<executions>
|
||
<!-- TODO:uncomment later-->
|
||
<!-- <execution>-->
|
||
<!-- <id>store-client-test</id>-->
|
||
<!-- <configuration>-->
|
||
<!-- <testSourceDirectory>${basedir}/src/main/java/-->
|
||
<!-- </testSourceDirectory>-->
|
||
<!-- <testClassesDirectory>${basedir}/target/classes/-->
|
||
<!-- </testClassesDirectory>-->
|
||
<!-- <includes>-->
|
||
<!-- <include>**/ClientSuiteTest.java</include>-->
|
||
<!-- </includes>-->
|
||
<!-- </configuration>-->
|
||
<!-- </execution>-->
|
||
<!-- <execution>-->
|
||
<!-- <id>store-core-test</id>-->
|
||
<!-- <configuration>-->
|
||
<!-- <testSourceDirectory>${basedir}/src/main/java/-->
|
||
<!-- </testSourceDirectory>-->
|
||
<!-- <testClassesDirectory>${basedir}/target/classes/-->
|
||
<!-- </testClassesDirectory>-->
|
||
<!-- <includes>-->
|
||
<!-- <include>**/CoreSuiteTest.java</include>-->
|
||
<!-- </includes>-->
|
||
<!-- </configuration>-->
|
||
<!-- </execution>-->
|
||
<execution>
|
||
<id>store-common-test</id>
|
||
<configuration>
|
||
<testSourceDirectory>${basedir}/src/main/java/
|
||
</testSourceDirectory>
|
||
<testClassesDirectory>${basedir}/target/classes/
|
||
</testClassesDirectory>
|
||
<includes>
|
||
<include>**/CommonSuiteTest.java</include>
|
||
</includes>
|
||
</configuration>
|
||
</execution>
|
||
<!-- <execution>-->
|
||
<!-- <id>store-rocksdb-test</id>-->
|
||
<!-- <configuration>-->
|
||
<!-- <testSourceDirectory>${basedir}/src/main/java/-->
|
||
<!-- </testSourceDirectory>-->
|
||
<!-- <testClassesDirectory>${basedir}/target/classes/-->
|
||
<!-- </testClassesDirectory>-->
|
||
<!-- <includes>-->
|
||
<!-- <include>**/RocksDbSuiteTest.java</include>-->
|
||
<!-- </includes>-->
|
||
<!-- </configuration>-->
|
||
<!-- </execution>-->
|
||
<!-- <execution>-->
|
||
<!-- <id>store-server-test</id>-->
|
||
<!-- <configuration>-->
|
||
<!-- <testSourceDirectory>${basedir}/src/main/java/-->
|
||
<!-- </testSourceDirectory>-->
|
||
<!-- <testClassesDirectory>${basedir}/target/classes/-->
|
||
<!-- </testClassesDirectory>-->
|
||
<!-- <includes>-->
|
||
<!-- <include>**/ServerSuiteTest.java</include>-->
|
||
<!-- </includes>-->
|
||
<!-- <excludes>-->
|
||
<!-- <exclude>**/node/**/*</exclude>-->
|
||
<!-- </excludes>-->
|
||
<!-- </configuration>-->
|
||
<!-- </execution>-->
|
||
<!-- <execution>-->
|
||
<!-- <id>store-raftcore-test</id>-->
|
||
<!-- <configuration>-->
|
||
<!-- <testSourceDirectory>${basedir}/src/main/java/-->
|
||
<!-- </testSourceDirectory>-->
|
||
<!-- <testClassesDirectory>${basedir}/target/classes/-->
|
||
<!-- </testClassesDirectory>-->
|
||
<!-- <includes>-->
|
||
<!-- <include>**/RaftSuiteTest.java</include>-->
|
||
<!-- </includes>-->
|
||
<!-- </configuration>-->
|
||
<!-- </execution>-->
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.jacoco</groupId>
|
||
<artifactId>jacoco-maven-plugin</artifactId>
|
||
<version>0.8.4</version>
|
||
<executions>
|
||
<execution>
|
||
<id>pre-test</id>
|
||
|
||
<goals>
|
||
<goal>prepare-agent</goal>
|
||
</goals>
|
||
</execution>
|
||
<execution>
|
||
<id>post-test</id>
|
||
<phase>test</phase>
|
||
<goals>
|
||
<goal>report-aggregate</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${basedir}/target/site/jacoco</outputDirectory>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<excludes>
|
||
<exclude>**/grpc/**/*</exclude>
|
||
<exclude>**/jraft/**/*</exclude>
|
||
<exclude>**/*Iterator*</exclude>
|
||
<exclude>**/node/**/*</exclude>
|
||
</excludes>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
<resources>
|
||
<resource>
|
||
<directory>src/main/resources/</directory>
|
||
<filtering>true</filtering>
|
||
</resource>
|
||
</resources>
|
||
</build>
|
||
</project>
|