pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.0.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <groupId>com.gct.tool</groupId>
  13. <artifactId>data-download-tool</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>data_analyse_tool</name>
  16. <description>数据分析工具</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <spring-cloud.version>Hoxton.SR3</spring-cloud.version>
  20. <spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>
  21. <mybatis-plus.version>3.3.1</mybatis-plus.version>
  22. <mybatis-typehandlers.version>1.0.2</mybatis-typehandlers.version>
  23. <mybatis-plus-generator.version>3.3.1.tmp</mybatis-plus-generator.version>
  24. <velocity-engine.version>2.2</velocity-engine.version>
  25. <swagger.version>1.9.1.RELEASE</swagger.version>
  26. <!-- <lombok.version>1.18.16</lombok.version>-->
  27. <lombok.version>1.16.18</lombok.version>
  28. <jwt.version>0.9.1</jwt.version>
  29. <web.version>2.3.0.RELEASE</web.version>
  30. <security.version>2.3.0.RELEASE</security.version>
  31. <redis.version>2.3.0.RELEASE</redis.version>
  32. <jedis.version>3.1.0</jedis.version>
  33. <fastjson.version>1.2.58</fastjson.version>
  34. <lombok-maven-plugin.version>1.16.6.1</lombok-maven-plugin.version>
  35. <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
  36. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  37. </properties>
  38. <dependencies>
  39. <!-- Spring Cloud Hoxton -->
  40. <dependency>
  41. <groupId>org.springframework.cloud</groupId>
  42. <artifactId>spring-cloud-dependencies</artifactId>
  43. <version>${spring-cloud.version}</version>
  44. <type>pom</type>
  45. <scope>import</scope>
  46. </dependency>
  47. <!-- Spring Cloud Alibaba -->
  48. <dependency>
  49. <groupId>com.alibaba.cloud</groupId>
  50. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  51. <version>${spring-cloud-alibaba.version}</version>
  52. <type>pom</type>
  53. <scope>import</scope>
  54. </dependency>
  55. <!--mybatis-plus-->
  56. <dependency>
  57. <groupId>com.baomidou</groupId>
  58. <artifactId>mybatis-plus-boot-starter</artifactId>
  59. <version>${mybatis-plus.version}</version>
  60. </dependency>
  61. <!--这个必须引用 因为使用mybatis-plus LocalDataTime问题-->
  62. <dependency>
  63. <groupId>org.mybatis</groupId>
  64. <artifactId>mybatis-typehandlers-jsr310</artifactId>
  65. <version>${mybatis-typehandlers.version}</version>
  66. </dependency>
  67. <!--代码生成模式插件 3.0.3以后需要手动设置依赖-->
  68. <!--代码生成模板-->
  69. <!--PG driver-->
  70. <dependency>
  71. <groupId>org.postgresql</groupId>
  72. <artifactId>postgresql</artifactId>
  73. <version>42.2.18</version>
  74. </dependency>
  75. <!--jdbc starter-->
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-jdbc</artifactId>
  79. </dependency>
  80. <!--open feign-->
  81. <dependency>
  82. <groupId>org.springframework.cloud</groupId>
  83. <artifactId>spring-cloud-starter-openfeign</artifactId>
  84. </dependency>
  85. <!--lombok-->
  86. <dependency>
  87. <groupId>org.projectlombok</groupId>
  88. <artifactId>lombok</artifactId>
  89. <version>${lombok.version}</version>
  90. </dependency>
  91. <!--quartz-->
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-quartz</artifactId>
  95. </dependency>
  96. <!--swagger-->
  97. <dependency>
  98. <groupId>com.spring4all</groupId>
  99. <artifactId>swagger-spring-boot-starter</artifactId>
  100. <version>${swagger.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-test</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.alibaba</groupId>
  108. <artifactId>fastjson</artifactId>
  109. <version>${fastjson.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-test</artifactId>
  114. <version>2.3.0.RELEASE</version>
  115. <scope>test</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-web</artifactId>
  120. </dependency>
  121. </dependencies>
  122. <dependencyManagement>
  123. <dependencies>
  124. <!-- Spring Cloud Hoxton -->
  125. <dependency>
  126. <groupId>org.springframework.cloud</groupId>
  127. <artifactId>spring-cloud-dependencies</artifactId>
  128. <version>Hoxton.SR3</version>
  129. <type>pom</type>
  130. <scope>import</scope>
  131. </dependency>
  132. <!-- Spring Cloud Alibaba -->
  133. <dependency>
  134. <groupId>com.alibaba.cloud</groupId>
  135. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  136. <version>2.2.1.RELEASE</version>
  137. <type>pom</type>
  138. <scope>import</scope>
  139. </dependency>
  140. </dependencies>
  141. </dependencyManagement>
  142. <build>
  143. <resources>
  144. <resource>
  145. <directory>src/main/java</directory>
  146. <excludes>
  147. <exclude>**/*.java</exclude>
  148. </excludes>
  149. </resource>
  150. <resource>
  151. <directory>src/main/resources</directory>
  152. <includes>
  153. <include>**/*.*</include>
  154. </includes>
  155. </resource>
  156. <resource>
  157. <directory>src/main/java</directory>
  158. <includes>
  159. <include>**/*.xml</include>
  160. </includes>
  161. <!-- 是否替换资源中的属性-->
  162. <filtering>false</filtering>
  163. </resource>
  164. </resources>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-maven-plugin</artifactId>
  169. </plugin>
  170. <plugin>
  171. <groupId>org.apache.maven.plugins</groupId>
  172. <artifactId>maven-compiler-plugin</artifactId>
  173. <version>${maven-compiler-plugin.version}</version>
  174. <configuration>
  175. <!-- 设置是否执行注释处理。 仅适用于JDK1.6如果没有设置,编译和注释处理都同时执行。
  176. 允许值为:
  177. none - no annotation processing is performed.
  178. only - only annotation processing is done, no compilation.
  179. 设置为only complie 或者build一下就可以运行annotation processor了
  180. 平常走默认值即可-->
  181. <!-- <proc>only</proc>-->
  182. <source>${java.version}</source>
  183. <target>${java.version}</target>
  184. <encoding>utf-8</encoding>
  185. </configuration>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.projectlombok</groupId>
  189. <artifactId>lombok-maven-plugin</artifactId>
  190. <version>${lombok-maven-plugin.version}</version>
  191. </plugin>
  192. <!-- 打包过程忽略Junit测试 -->
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-surefire-plugin</artifactId>
  196. <configuration>
  197. <skip>true</skip>
  198. </configuration>
  199. </plugin>
  200. </plugins>
  201. </build>
  202. </project>