| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-core</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </parent> |
| <artifactId>iotdb-server</artifactId> |
| <name>IoTDB: Core: Data-Node (Server)</name> |
| <properties> |
| <iotdb.it.skip>${iotdb.test.skip}</iotdb.it.skip> |
| <iotdb.test.skip>false</iotdb.test.skip> |
| <iotdb.ut.skip>${iotdb.test.skip}</iotdb.ut.skip> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>service-rpc</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-consensus</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>common-api</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>tsfile</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>external-api</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>openapi</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>node-commons</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>isession</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-antlr</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-thrift-commons</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>udf-api</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>trigger-api</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>metrics-interface</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-thrift</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-thrift-confignode</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>pipe-api</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-session</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-collections4</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.airlift</groupId> |
| <artifactId>units</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ratis</groupId> |
| <artifactId>ratis-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.jsonwebtoken</groupId> |
| <artifactId>jjwt-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.milo</groupId> |
| <artifactId>stack-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.servlet</groupId> |
| <artifactId>jakarta.servlet-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.milo</groupId> |
| <artifactId>stack-server</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.checkerframework</groupId> |
| <artifactId>checker-qual</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-http</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-codec-mqtt</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-pool2</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.antlr</groupId> |
| <artifactId>antlr4-runtime</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-util</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.airlift</groupId> |
| <artifactId>airline</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.airlift</groupId> |
| <artifactId>concurrent</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-server</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.milo</groupId> |
| <artifactId>sdk-server</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.validation</groupId> |
| <artifactId>jakarta.validation-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.ws.rs</groupId> |
| <artifactId>jakarta.ws.rs-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.reflections</groupId> |
| <artifactId>reflections</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish.jersey.containers</groupId> |
| <artifactId>jersey-container-servlet-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.moquette</groupId> |
| <artifactId>moquette-broker</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-buffer</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-servlet</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish.jersey.inject</groupId> |
| <artifactId>jersey-hk2</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.github.ben-manes.caffeine</groupId> |
| <artifactId>caffeine</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.lmax</groupId> |
| <artifactId>disruptor</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.java-websocket</groupId> |
| <artifactId>Java-WebSocket</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- This dependency is needed at runtime, so please not set test scope --> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>metrics-core</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- Possibly these need to move into the compile or provided scope --> |
| <dependency> |
| <groupId>io.jsonwebtoken</groupId> |
| <artifactId>jjwt-impl</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- Possibly these need to move into the compile or provided scope --> |
| <dependency> |
| <groupId>io.jsonwebtoken</groupId> |
| <artifactId>jjwt-jackson</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>net.minidev</groupId> |
| <artifactId>json-smart</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpcore</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ratis</groupId> |
| <artifactId>ratis-thirdparty-misc</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.nimbusds</groupId> |
| <artifactId>oauth2-oidc-sdk</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-module-junit4</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-api-mockito2</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.awaitility</groupId> |
| <artifactId>awaitility</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <!--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>${iotdb.ut.skip}</skipTests> |
| <systemProperties> |
| <IOTDB_CONF>src/test/resources</IOTDB_CONF> |
| </systemProperties> |
| <reuseForks>false</reuseForks> |
| <runOrder>random</runOrder> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <skipTests>${iotdb.test.skip}</skipTests> |
| <skipITs>${iotdb.it.skip}</skipITs> |
| <reuseForks>false</reuseForks> |
| <runOrder>random</runOrder> |
| </configuration> |
| <executions> |
| <execution> |
| <id>run-integration-tests</id> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| <phase>integration-test</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <!-- Package binaries--> |
| <execution> |
| <id>server-assembly</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/server.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| <archive> |
| <manifest> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| </manifest> |
| </archive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- 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> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <!-- copy all templates/data in the same location to compile them at once --> |
| <id>copy-fmpp-resources</id> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <phase>initialize</phase> |
| <configuration> |
| <outputDirectory>${project.build.directory}/codegen</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/main/codegen</directory> |
| <filtering>false</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- generate sources from fmpp --> |
| <groupId>org.apache.drill.tools</groupId> |
| <artifactId>drill-fmpp-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-fmpp</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <phase>generate-sources</phase> |
| <configuration> |
| <config>${project.build.directory}/codegen/config.fmpp</config> |
| <output>${project.build.directory}/generated-sources/freemarker</output> |
| <templates>${project.build.directory}/codegen/templates</templates> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <phase>generate-sources</phase> |
| <configuration> |
| <sources> |
| <source>${project.build.directory}/generated-sources/freemarker</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- Make sure stuff is also cleaned up, which might be left over from the tests --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>data</directory> |
| <includes> |
| <include>**</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <configuration> |
| <ignoredDependencies> |
| <!-- For some reason this plugin missed it being used for a constant import --> |
| <ignoredDependency>org.apache.iotdb:isession</ignoredDependency> |
| </ignoredDependencies> |
| <usedDependencies> |
| <!-- These are used at runtime in tests --> |
| <usedDependency>io.jsonwebtoken:jjwt-impl</usedDependency> |
| <usedDependency>io.jsonwebtoken:jjwt-jackson</usedDependency> |
| <!-- We need this dependency as it provides the metric managers used in tests --> |
| <usedDependency>org.apache.iotdb:metrics-core</usedDependency> |
| <!-- This dependency is required at runtime, when esnabling the rest service --> |
| <usedDependency>org.glassfish.jersey.inject:jersey-hk2</usedDependency> |
| </usedDependencies> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>skipIoTDBTests</id> |
| <activation> |
| <property> |
| <name>skipTests</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <properties> |
| <iotdb.it.skip>true</iotdb.it.skip> |
| <iotdb.test.skip>true</iotdb.test.skip> |
| <iotdb.ut.skip>true</iotdb.ut.skip> |
| </properties> |
| </profile> |
| <profile> |
| <id>skipUT_IoTDB_Tests</id> |
| <activation> |
| <property> |
| <name>skipUTs</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <properties> |
| <iotdb.ut.skip>true</iotdb.ut.skip> |
| </properties> |
| </profile> |
| <profile> |
| <id>only_test_server</id> |
| <activation> |
| <property> |
| <name>iotdb.test.only</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <properties> |
| <iotdb.it.skip>false</iotdb.it.skip> |
| <iotdb.test.skip>false</iotdb.test.skip> |
| <iotdb.ut.skip>false</iotdb.ut.skip> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |