| <?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> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hugegraph-pd</artifactId> |
| <version>${revision}</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>hg-pd-test</artifactId> |
| |
| <properties> |
| <skip.dump>true</skip.dump> |
| <!--maven.test.skip>true</maven.test.skip--> |
| <powermock.version>2.0.0-RC.3</powermock.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> |
| <configuration> |
| <excludes> |
| <exclude>**/grpc/**.*</exclude> |
| <exclude>**/config/**.*</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.13.2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| <version>1.18.24</version> |
| </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>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <version>${log4j2.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hg-pd-grpc</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hg-pd-common</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hg-pd-client</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hg-pd-core</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hg-pd-service</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hg-pd-dist</artifactId> |
| <version>${revision}</version> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>2.8.9</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>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>${powermock.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-module-junit4-rule</artifactId> |
| <version>${powermock.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-api-support</artifactId> |
| <version>${powermock.version}</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> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.20</version> |
| <executions> |
| <execution> |
| <id>pd-client-test</id> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/PDClientSuiteTest.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>pd-core-test</id> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/PDCoreSuiteTest.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>pd-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>pd-rest-test</id> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/PDRestSuiteTest.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>org/apache/hugegraph/pd/rest/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/service/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/model/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/watch/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/pulse/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/license/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/notice/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/util/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/metrics/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/util/grpc/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/boot/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/grpc/**/*.class</exclude> |
| <exclude>org/apache/hugegraph/pd/raft/*.class</exclude> |
| <exclude>**/RaftKVStore.class</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| <resources> |
| <resource> |
| <directory>src/main/resources/</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </build> |
| </project> |