pom.xml 5.2 KB
Newer Older
X
XuYi 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
2 3
<!--

4 5 6 7 8 9 10
    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
11 12 13

        http://www.apache.org/licenses/LICENSE-2.0

14 15 16 17 18 19
    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.
20 21

-->
X
XuYi 已提交
22 23
<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>
X
XuYi 已提交
24
    <parent>
X
XuYi 已提交
25
        <groupId>org.apache.iotdb</groupId>
26
        <artifactId>iotdb-parent</artifactId>
J
Jialin Qiao 已提交
27
        <version>0.10.0-SNAPSHOT</version>
X
XuYi 已提交
28
        <relativePath>../pom.xml</relativePath>
X
XuYi 已提交
29
    </parent>
30 31
    <artifactId>iotdb-cli</artifactId>
    <name>IoTDB Cli</name>
X
XuYi 已提交
32
    <properties>
33 34 35
        <cli.test.skip>false</cli.test.skip>
        <cli.it.skip>${cli.test.skip}</cli.it.skip>
        <cli.ut.skip>${cli.test.skip}</cli.ut.skip>
X
XuYi 已提交
36 37 38 39 40
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.apache.iotdb</groupId>
            <artifactId>iotdb-jdbc</artifactId>
41
            <version>${project.version}</version>
X
XuYi 已提交
42 43 44 45 46 47 48 49 50
        </dependency>
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
51 52 53 54
        <dependency>
            <groupId>me.tongfei</groupId>
            <artifactId>progressbar</artifactId>
        </dependency>
X
XuYi 已提交
55 56 57 58 59 60 61
        <dependency>
            <groupId>jline</groupId>
            <artifactId>jline</artifactId>
        </dependency>
    </dependencies>
    <build>
        <plugins>
62 63
            <!--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/-->
X
XuYi 已提交
64 65 66
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
                <configuration>
                    <skipTests>${cli.ut.skip}</skipTests>
                </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>
X
XuYi 已提交
84 85
                <configuration>
                    <skipTests>${cli.test.skip}</skipTests>
86
                    <skipITs>${cli.it.skip}</skipITs>
X
XuYi 已提交
87 88
                </configuration>
            </plugin>
89 90 91 92 93 94 95 96 97 98 99 100 101
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <!-- Package binaries-->
                    <execution>
                        <id>client-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <descriptors>
102
                                <descriptor>src/assembly/cli.xml</descriptor>
103 104 105 106 107 108
                            </descriptors>
                            <appendAssemblyId>false</appendAssemblyId>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
X
XuYi 已提交
109 110
        </plugins>
    </build>
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    <profiles>
        <profile>
            <id>skipCliTests</id>
            <activation>
                <property>
                    <name>skipTests</name>
                    <value>true</value>
                </property>
            </activation>
            <properties>
                <cli.test.skip>true</cli.test.skip>
                <cli.ut.skip>true</cli.ut.skip>
                <cli.it.skip>true</cli.it.skip>
            </properties>
        </profile>
126 127 128 129 130 131 132 133 134 135 136 137
        <profile>
            <id>skipUT_CliTests</id>
            <activation>
                <property>
                    <name>skipUTs</name>
                    <value>true</value>
                </property>
            </activation>
            <properties>
                <cli.ut.skip>true</cli.ut.skip>
            </properties>
        </profile>
138
    </profiles>
X
XuYi 已提交
139
</project>