| <?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.3.2-SNAPSHOT</version> |
| </parent> |
| <artifactId>iotdb-distribution</artifactId> |
| <packaging>pom</packaging> |
| <name>IoTDB: Distribution</name> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-server</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-cli</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-confignode</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>library-udf</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>spark-iotdb-connector_2.11</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>spark-iotdb-connector_2.12</artifactId> |
| <version>1.3.2-SNAPSHOT</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <!-- Package binaries--> |
| <execution> |
| <id>all-bin</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/all.xml</descriptor> |
| <descriptor>src/assembly/datanode.xml</descriptor> |
| <descriptor>src/assembly/confignode.xml</descriptor> |
| <descriptor>src/assembly/cli.xml</descriptor> |
| <descriptor>src/assembly/library-udf.xml</descriptor> |
| <descriptor>src/assembly/spark-connector.xml</descriptor> |
| <descriptor>src/assembly/flink-sql-connector.xml</descriptor> |
| </descriptors> |
| <finalName>apache-iotdb-${project.version}</finalName> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- |
| Create SHA512 checksum files for the release artifacts. |
| --> |
| <plugin> |
| <groupId>net.nicoulaj.maven.plugins</groupId> |
| <artifactId>checksum-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sign-source-release</id> |
| <goals> |
| <goal>files</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <algorithms> |
| <algorithm>SHA-512</algorithm> |
| </algorithms> |
| <fileSets> |
| <!--bin-all--> |
| <fileSet> |
| <directory>${project.build.directory}</directory> |
| <includes> |
| <include>apache-iotdb-${project.version}-all-bin.zip</include> |
| <include>apache-iotdb-${project.version}-datanode-bin.zip</include> |
| <include>apache-iotdb-${project.version}-cli-bin.zip</include> |
| <include>apache-iotdb-${project.version}-confignode-bin.zip</include> |
| <include>apache-iotdb-${project.version}-library-udf-bin.zip</include> |
| <include>apache-iotdb-${project.version}-spark-connector-bin.zip</include> |
| <include>apache-iotdb-${project.version}-flink-sql-connector-bin.zip</include> |
| </includes> |
| </fileSet> |
| </fileSets> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>enforce-ban-duplicate-classes</id> |
| <configuration combine.children="append"> |
| <rules> |
| <banDuplicateClasses> |
| <ignoreClasses> |
| <!-- We've got dependencies to both the scala 2.11 and 2.12 versions --> |
| <ignoreClass>org.apache.iotdb.spark.db.*</ignoreClass> |
| </ignoreClasses> |
| </banDuplicateClasses> |
| </rules> |
| <fail>true</fail> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>with-cpp</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-server</artifactId> |
| <version>${project.version}</version> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-cli</artifactId> |
| <version>${project.version}</version> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-confignode</artifactId> |
| <version>${project.version}</version> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>library-udf</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>spark-iotdb-connector_2.11</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>spark-iotdb-connector_2.12</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>flink-sql-iotdb-connector</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <!-- Package binaries--> |
| <execution> |
| <id>all-bin</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <descriptors combine.children="append"> |
| <descriptor>src/assembly/client-cpp.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- |
| Create SHA512 checksum files for the release artifacts. |
| --> |
| <plugin> |
| <groupId>net.nicoulaj.maven.plugins</groupId> |
| <artifactId>checksum-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sign-source-release</id> |
| <goals> |
| <goal>files</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <fileSets> |
| <fileSet> |
| <includes combine.children="append"> |
| <include>apache-iotdb-${project.version}-client-cpp-${os.classifier}-bin.zip</include> |
| </includes> |
| </fileSet> |
| </fileSets> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>with-grafana-plugin</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-grafana-plugin</artifactId> |
| <version>${project.version}</version> |
| <type>pom</type> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <!-- Package binaries--> |
| <execution> |
| <id>all-bin</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <descriptors combine.children="append"> |
| <descriptor>src/assembly/grafana-plugin.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- |
| Create SHA512 checksum files for the release artifacts. |
| --> |
| <plugin> |
| <groupId>net.nicoulaj.maven.plugins</groupId> |
| <artifactId>checksum-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sign-source-release</id> |
| <goals> |
| <goal>files</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <fileSets> |
| <fileSet> |
| <includes combine.children="append"> |
| <include>apache-iotdb-${project.version}-grafana-plugin-bin.zip</include> |
| </includes> |
| </fileSet> |
| </fileSets> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |