| <?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-client</artifactId> |
| <version>1.3.1</version> |
| </parent> |
| <artifactId>iotdb-python-api</artifactId> |
| <name>IoTDB: Client: Python-API</name> |
| <description>Python API of IoTDB.</description> |
| <dependencies> |
| <!-- This is just for ensuring the other module is built first --> |
| <dependency> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-thrift-commons</artifactId> |
| <version>1.3.1</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <resources> |
| <resource> |
| <filtering>true</filtering> |
| <directory>${basedir}/resources</directory> |
| <includes> |
| <include>setup.py</include> |
| </includes> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <!-- clean thrift and old build folder --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>iotdb</directory> |
| <includes> |
| <include>thrift/</include> |
| </includes> |
| <followSymlinks>false</followSymlinks> |
| </fileset> |
| <fileset> |
| <directory>apache_iotdb.egg-info</directory> |
| </fileset> |
| <fileset> |
| <directory>build</directory> |
| </fileset> |
| <fileset> |
| <directory>dist</directory> |
| </fileset> |
| <fileset> |
| <directory>./</directory> |
| <includes> |
| <include>LICENSE</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| <!-- fill thrift folder --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <configuration> |
| <encoding>${project.build.sourceEncoding}</encoding> |
| </configuration> |
| <executions> |
| <execution> |
| <id>copy-thrift-python-resources</id> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <!-- here the phase you need --> |
| <phase>generate-sources</phase> |
| <configuration> |
| <encoding>utf-8</encoding> |
| <outputDirectory>${basedir}/iotdb/thrift/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/../../iotdb-protocol/thrift-datanode/target/generated-sources-python/iotdb/thrift/</directory> |
| <includes> |
| <include>**/rpc/*</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>${basedir}/../../iotdb-protocol/thrift-commons/target/generated-sources-python/iotdb/thrift/</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <!-- Copy License --> |
| <execution> |
| <id>copy-pypi-file-resources</id> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <!-- here the phase you need --> |
| <phase>generate-sources</phase> |
| <configuration> |
| <encoding>utf-8</encoding> |
| <outputDirectory>${basedir}/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/..</directory> |
| <includes> |
| <include>LICENSE</include> |
| </includes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-setup-file-resources</id> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <!-- here the phase you need --> |
| <phase>generate-sources</phase> |
| <configuration> |
| <encoding>utf-8</encoding> |
| <outputDirectory>${basedir}/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/target/classes</directory> |
| <includes> |
| <include>setup.py</include> |
| </includes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>write-python-version</id> |
| <goals> |
| <goal>regex-property</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <name>python_version</name> |
| <regex>-SNAPSHOT</regex> |
| <value>${project.version}</value> |
| <replacement>\.dev0</replacement> |
| <failIfNoMatch>false</failIfNoMatch> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <configuration> |
| <usedDependencies> |
| <!-- This dependency is only used for ensuring the build order --> |
| <usedDependency>org.apache.iotdb:iotdb-thrift-commons</usedDependency> |
| </usedDependencies> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |