pom.xml 5.6 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>
Z
change  
zyyang 已提交
70
            <version>2.0.15</version>
Z
change  
zyyang 已提交
71
        </dependency>
Z
change  
zyyang 已提交
72 73 74 75 76 77 78
        <!-- fastjson -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.75</version>
        </dependency>

Z
change  
zyyang 已提交
79 80 81 82 83 84 85 86 87 88 89 90
        <!-- mysql -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.47</version>
        </dependency>
        <!-- log4j -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>
Z
change  
zyyang 已提交
91
        <!-- junit -->
Z
change  
zyyang 已提交
92 93 94 95 96 97
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
Z
change  
zyyang 已提交
98
        <!-- lombok -->
99 100 101
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
Z
change  
zyyang 已提交
102 103
            <version>1.18.16</version>
            <scope>provided</scope>
104 105 106 107
        </dependency>
    </dependencies>

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

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

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

163 164 165
    </build>

</project>