| <?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-parent</artifactId> |
| <version>1.0.1</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| <artifactId>iotdb-server</artifactId> |
| <name>IoTDB Server</name> |
| <properties> |
| <iotdb.test.skip>false</iotdb.test.skip> |
| <iotdb.it.skip>${iotdb.test.skip}</iotdb.it.skip> |
| <iotdb.ut.skip>${iotdb.test.skip}</iotdb.ut.skip> |
| <jjwt-api.version>0.10.8</jjwt-api.version> |
| <oauth2-oidc-sdk.version>8.3</oauth2-oidc-sdk.version> |
| <tomcat-embed-core.version>10.1.0-M1</tomcat-embed-core.version> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>service-rpc</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-consensus</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>tsfile</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-jdbc</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>influxdb-thrift</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>external-pipe-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>external-api</artifactId> |
| <version>${project.version}</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>io.airlift</groupId> |
| <artifactId>stats</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.airlift</groupId> |
| <artifactId>airline</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| </exclusions> |
| </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.jetty</groupId> |
| <artifactId>jetty-webapp</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>openapi</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>de.fraunhofer.iosb.io.moquette</groupId> |
| <artifactId>moquette-broker</artifactId> |
| <version>0.14.3</version> |
| <exclusions> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.zaxxer</groupId> |
| <artifactId>HikariCP</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.dropwizard.metrics</groupId> |
| <artifactId>metrics-jvm</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- for mocked test--> |
| <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> |
| <dependency> |
| <groupId>org.apache.tomcat.embed</groupId> |
| <artifactId>tomcat-embed-core</artifactId> |
| <version>${tomcat-embed-core.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-buffer</artifactId> |
| </dependency> |
| <!-- for mqtt sink in trigger--> |
| <dependency> |
| <groupId>org.fusesource.mqtt-client</groupId> |
| <artifactId>mqtt-client</artifactId> |
| </dependency> |
| <!-- used for communicate with alter manager--> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.github.ben-manes.caffeine</groupId> |
| <artifactId>caffeine</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.influxdb</groupId> |
| <artifactId>influxdb-java</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-lang</groupId> |
| <artifactId>commons-lang</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>node-commons</artifactId> |
| <version>${project.version}</version> |
| <scope>compile</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> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>run-integration-tests</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <skipTests>${iotdb.test.skip}</skipTests> |
| <skipITs>${iotdb.it.skip}</skipITs> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>${maven.assembly.version}</version> |
| <executions> |
| <!-- Package binaries--> |
| <execution> |
| <id>server-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <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> |
| <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> |
| <phase>initialize</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <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> |
| <version>${drill.freemarker.maven.plugin.version}</version> |
| <executions> |
| <execution> |
| <id>generate-fmpp</id> |
| <phase>${codegen.phase}</phase> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <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> |
| <version>3.2.0</version> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.build.directory}/generated-sources/freemarker</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>skipIoTDBTests</id> |
| <activation> |
| <property> |
| <name>skipTests</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <properties> |
| <iotdb.test.skip>true</iotdb.test.skip> |
| <iotdb.ut.skip>true</iotdb.ut.skip> |
| <iotdb.it.skip>true</iotdb.it.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.test.skip>false</iotdb.test.skip> |
| <iotdb.ut.skip>false</iotdb.ut.skip> |
| <iotdb.it.skip>false</iotdb.it.skip> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |