| <?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="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>iotdb-parent</artifactId> |
| <groupId>org.apache.iotdb</groupId> |
| <version>1.1.1-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>iotdb-consensus</artifactId> |
| <name>IoTDB Consensus</name> |
| <properties> |
| <maven.compiler.source>8</maven.compiler.source> |
| <maven.compiler.target>8</maven.compiler.target> |
| <ratis.version>2.4.2-ebba77d-SNAPSHOT</ratis.version> |
| <consensus.test.skip>true</consensus.test.skip> |
| <consensus.it.skip>${consensus.test.skip}</consensus.it.skip> |
| <consensus.ut.skip>${consensus.test.skip}</consensus.ut.skip> |
| </properties> |
| <dependencies> |
| <!-- https://mvnrepository.com/artifact/org.apache.ratis/ratis-server --> |
| <dependency> |
| <groupId>org.apache.ratis</groupId> |
| <artifactId>ratis-server</artifactId> |
| <version>${ratis.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ratis</groupId> |
| <artifactId>ratis-common</artifactId> |
| <version>${ratis.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ratis</groupId> |
| <artifactId>ratis-grpc</artifactId> |
| <version>${ratis.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>node-commons</artifactId> |
| <version>${project.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>thrift-iot-consensus</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <!-- generate test codes into test-jar--> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!--using `mvn test` to run UT, `mvn verify` to run ITs |
| Reference: https://antoniogoncalves.org/2012/12/13/lets-turn-integration-tests-with-maven-to-a-first-class-citizen/--> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <skipTests>${consensus.ut.skip}</skipTests> |
| <reuseForks>false</reuseForks> |
| <runOrder>random</runOrder> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>skipConsensusTests</id> |
| <activation> |
| <property> |
| <name>skipTests</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <properties> |
| <consensus.test.skip>true</consensus.test.skip> |
| <consensus.ut.skip>true</consensus.ut.skip> |
| <consensus.it.skip>true</consensus.it.skip> |
| </properties> |
| </profile> |
| <profile> |
| <id>skipUT_Consensus_Tests</id> |
| <activation> |
| <property> |
| <name>skipUTs</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <properties> |
| <consensus.ut.skip>true</consensus.ut.skip> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |