pom.xml 5.8 KB
Newer Older
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.taosdata</groupId>
    <artifactId>taosdemo</artifactId>
    <version>2.0</version>
    <name>taosdemo</name>
Z
change  
zyyang 已提交
9
    <packaging>jar</packaging>
10 11 12
    <description>Demo project for TDengine</description>

    <properties>
Z
change  
zyyang 已提交
13
        <spring.version>5.3.2</spring.version>
14 15 16
    </properties>

    <dependencies>
Z
change  
zyyang 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
        <!-- spring -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-expression</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aspects</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>${spring.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <!-- HikariCP -->
        <dependency>
            <groupId>com.zaxxer</groupId>
            <artifactId>HikariCP</artifactId>
            <version>3.4.5</version>
        </dependency>
Z
change  
zyyang 已提交
66 67 68 69
        <!-- taos jdbc -->
        <dependency>
            <groupId>com.taosdata.jdbc</groupId>
            <artifactId>taos-jdbcdriver</artifactId>
70 71 72
            <version>2.0.16</version>
<!--            <scope>system</scope>-->
<!--            <systemPath>${project.basedir}/src/main/resources/lib/taos-jdbcdriver-2.0.15-dist.jar</systemPath>-->
Z
change  
zyyang 已提交
73
        </dependency>
Z
change  
zyyang 已提交
74 75 76 77 78 79
        <!-- fastjson -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.75</version>
        </dependency>
Z
change  
zyyang 已提交
80
        <!-- mysql: just for test -->
Z
change  
zyyang 已提交
81 82 83 84
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.47</version>
Z
change  
zyyang 已提交
85
            <scope>test</scope>
Z
change  
zyyang 已提交
86 87 88 89 90 91 92
        </dependency>
        <!-- log4j -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>
Z
change  
zyyang 已提交
93
        <!-- junit -->
Z
change  
zyyang 已提交
94 95 96 97 98 99
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
Z
change  
zyyang 已提交
100
        <!-- lombok -->
101 102 103
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
Z
change  
zyyang 已提交
104 105
            <version>1.18.16</version>
            <scope>provided</scope>
106 107 108 109
        </dependency>
    </dependencies>

    <build>
Z
change  
zyyang 已提交
110 111 112 113 114 115
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
Z
change  
zyyang 已提交
116
                    <include>**/*.jar</include>
Z
change  
zyyang 已提交
117 118 119 120 121 122 123 124 125 126 127 128
                </includes>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>

129 130
        <plugins>
            <plugin>
Z
change  
zyyang 已提交
131
                <groupId>org.apache.maven.plugins</groupId>
Z
change  
zyyang 已提交
132 133 134 135 136
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>8</source>
                    <target>8</target>
                </configuration>
Z
change  
zyyang 已提交
137 138 139 140
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
Z
change  
zyyang 已提交
141 142
                <artifactId>maven-assembly-plugin</artifactId>
                <version>3.1.0</version>
Z
change  
zyyang 已提交
143
                <configuration>
Z
change  
zyyang 已提交
144 145 146 147 148 149 150 151 152
                    <archive>
                        <manifest>
                            <!-- 指定JdbcChecker为mainClass -->
                            <mainClass>com.taosdata.taosdemo.TaosDemoApplication</mainClass>
                        </manifest>
                    </archive>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
Z
change  
zyyang 已提交
153
                </configuration>
Z
change  
zyyang 已提交
154 155 156 157 158 159 160 161 162
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
163 164
            </plugin>
        </plugins>
Z
change  
zyyang 已提交
165

166 167 168
    </build>

</project>