pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>2.2.1.RELEASE</version>
  8. <relativePath/> <!-- lookup parent from repository -->
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>com.example</groupId>
  12. <artifactId>mdd</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>mdd</name>
  15. <description>mdd</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <spring-boot.version>2.6.13</spring-boot.version>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>com.alibaba</groupId>
  25. <artifactId>druid</artifactId>
  26. <version>1.1.14</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-web</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.commons</groupId>
  38. <artifactId>commons-lang3</artifactId>
  39. <version>3.12.0</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.projectlombok</groupId>
  43. <artifactId>lombok</artifactId>
  44. <optional>true</optional>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-test</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>junit</groupId>
  53. <artifactId>junit</artifactId>
  54. <version>4.12</version>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>cn.hutool</groupId>
  59. <artifactId>hutool-all</artifactId>
  60. <version>5.5.0</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>mysql</groupId>
  64. <artifactId>mysql-connector-java</artifactId>
  65. <version>8.0.25</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>commons-net</groupId>
  69. <artifactId>commons-net</artifactId>
  70. <version>3.6</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.taosdata.jdbc</groupId>
  74. <artifactId>taos-jdbcdriver</artifactId>
  75. <version>3.2.5</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.ant</groupId>
  79. <artifactId>ant</artifactId>
  80. <version>1.8.1</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.github.junrar</groupId>
  84. <artifactId>junrar</artifactId>
  85. <version>0.7</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.jcraft</groupId>
  89. <artifactId>jsch</artifactId> <!-- 解决 sftp 连接 -->
  90. <version>0.1.55</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.commons</groupId>
  94. <artifactId>commons-compress</artifactId>
  95. <version>1.21</version>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <resources>
  100. <!-- 配置文件复制到target目录下,不然开发调试的时候会报错 -->
  101. <resource>
  102. <!-- 资源文件的路径,不配置的话默认位于src/main/resources/目录下, -->
  103. <directory>src/main/resources</directory>
  104. <!-- 是否对资源文件进行过滤 -->
  105. <filtering>true</filtering>
  106. <!-- 这里没有配置targetPath,默认复制到outputDirectory目录下 -->
  107. </resource>
  108. <!-- 配置文件放在target/config目录下 -->
  109. <resource>
  110. <directory>src/main/resources</directory>
  111. <targetPath>${project.build.directory}/config</targetPath>
  112. </resource>
  113. </resources>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. <configuration>
  119. <excludes>
  120. <exclude>
  121. <groupId>org.projectlombok</groupId>
  122. <artifactId>lombok</artifactId>
  123. </exclude>
  124. </excludes>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-maven-plugin</artifactId>
  130. <version>2.2.1.RELEASE</version>
  131. <configuration>
  132. <mainClass>com.example.mdd.MddApplication</mainClass>
  133. </configuration>
  134. <executions>
  135. <execution>
  136. <goals>
  137. <goal>repackage</goal>
  138. </goals>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <!-- 打包过程忽略Junit测试 -->
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-surefire-plugin</artifactId>
  146. <version>2.17</version>
  147. <configuration>
  148. <skip>true</skip>
  149. </configuration>
  150. </plugin>
  151. </plugins>
  152. </build>
  153. </project>