pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.5.4</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.zxpt</groupId>
  12. <artifactId>qjpt-boot</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>zxpt-boot</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <java.version>1.8</java.version>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <mybatis-plus.version>3.1.2</mybatis-plus.version>
  22. <druid.version>1.1.17</druid.version>
  23. <jwt.version>0.9.1</jwt.version>
  24. <commons.version>2.6</commons.version>
  25. <aliyun-java-sdk-core.version>3.2.3</aliyun-java-sdk-core.version>
  26. <aliyun-java-sdk-dysmsapi.version>1.0.0</aliyun-java-sdk-dysmsapi.version>
  27. <aliyun.oss.version>3.6.0</aliyun.oss.version>
  28. <qc.cos.version>5.6.5</qc.cos.version>
  29. </properties>
  30. <dependencies>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web-services</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-devtools</artifactId>
  38. <scope>runtime</scope>
  39. <optional>true</optional>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-test</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <!--集成springmvc框架并实现自动配置 -->
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-web</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-mail</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-test</artifactId>
  58. <scope>test</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-aop</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-actuator</artifactId>
  67. </dependency>
  68. <!-- <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-devtools</artifactId>
  71. <optional>true</optional>
  72. </dependency> -->
  73. <!-- commons -->
  74. <dependency>
  75. <groupId>commons-io</groupId>
  76. <artifactId>commons-io</artifactId>
  77. <version>${commons.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>commons-lang</groupId>
  81. <artifactId>commons-lang</artifactId>
  82. <version>${commons.version}</version>
  83. </dependency>
  84. <!-- freemarker -->
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-freemarker</artifactId>
  88. </dependency>
  89. <!-- Lombok -->
  90. <dependency>
  91. <groupId>org.projectlombok</groupId>
  92. <artifactId>lombok</artifactId>
  93. </dependency>
  94. <!-- mybatis-plus -->
  95. <dependency>
  96. <groupId>com.baomidou</groupId>
  97. <artifactId>mybatis-plus-boot-starter</artifactId>
  98. <version>${mybatis-plus.version}</version>
  99. </dependency>
  100. <!-- druid -->
  101. <dependency>
  102. <groupId>com.alibaba</groupId>
  103. <artifactId>druid-spring-boot-starter</artifactId>
  104. <version>${druid.version}</version>
  105. </dependency>
  106. <!-- 动态数据源 -->
  107. <dependency>
  108. <groupId>com.baomidou</groupId>
  109. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  110. <version>2.5.4</version>
  111. </dependency>
  112. <!-- json -->
  113. <dependency>
  114. <groupId>com.alibaba</groupId>
  115. <artifactId>fastjson</artifactId>
  116. <version>1.2.60</version>
  117. </dependency>
  118. <!--mysql-->
  119. <dependency>
  120. <groupId>mysql</groupId>
  121. <artifactId>mysql-connector-java</artifactId>
  122. <version>5.1.47</version>
  123. <scope>runtime</scope>
  124. </dependency>
  125. <!-- Quartz定时任务 -->
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-quartz</artifactId>
  129. </dependency>
  130. <!--JWT-->
  131. <dependency>
  132. <groupId>com.auth0</groupId>
  133. <artifactId>java-jwt</artifactId>
  134. <version>3.7.0</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.hibernate</groupId>
  138. <artifactId>hibernate-core</artifactId>
  139. <exclusions>
  140. <exclusion>
  141. <groupId>commons-collections</groupId>
  142. <artifactId>commons-collections</artifactId>
  143. </exclusion>
  144. </exclusions>
  145. </dependency>
  146. <!--shiro-->
  147. <dependency>
  148. <groupId>org.apache.shiro</groupId>
  149. <artifactId>shiro-spring-boot-starter</artifactId>
  150. <version>1.4.0</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.crazycake</groupId>
  154. <artifactId>shiro-redis</artifactId>
  155. <version>3.1.0</version>
  156. <exclusions>
  157. <exclusion>
  158. <groupId>org.apache.shiro</groupId>
  159. <artifactId>shiro-core</artifactId>
  160. </exclusion>
  161. </exclusions>
  162. </dependency>
  163. <!-- Swagger API文档 -->
  164. <dependency>
  165. <groupId>io.springfox</groupId>
  166. <artifactId>springfox-swagger2</artifactId>
  167. <version>2.9.2</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>io.springfox</groupId>
  171. <artifactId>springfox-swagger-ui</artifactId>
  172. <version>2.9.2</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.github.xiaoymin</groupId>
  176. <artifactId>swagger-bootstrap-ui</artifactId>
  177. <version>1.9.3</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>io.springfox</groupId>
  181. <artifactId>springfox-bean-validators</artifactId>
  182. <version>2.9.2</version>
  183. </dependency>
  184. <!-- # 增加两个配置解决 NumberFormatException -->
  185. <dependency>
  186. <groupId>io.swagger</groupId>
  187. <artifactId>swagger-annotations</artifactId>
  188. <version>1.5.22</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>io.swagger</groupId>
  192. <artifactId>swagger-models</artifactId>
  193. <version>1.5.22</version>
  194. </dependency>
  195. <!-- Redis -->
  196. <dependency>
  197. <groupId>org.springframework.boot</groupId>
  198. <artifactId>spring-boot-starter-data-redis</artifactId>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.apache.commons</groupId>
  202. <artifactId>commons-pool2</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>cn.hutool</groupId>
  206. <artifactId>hutool-all</artifactId>
  207. <version>4.5.11</version>
  208. </dependency>
  209. <!-- 阿里云短信 -->
  210. <dependency>
  211. <groupId>com.aliyun</groupId>
  212. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  213. <version>${aliyun-java-sdk-dysmsapi.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.aliyun</groupId>
  217. <artifactId>aliyun-java-sdk-core</artifactId>
  218. <version>${aliyun-java-sdk-core.version}</version>
  219. </dependency>
  220. <!--HttpClient-->
  221. <dependency>
  222. <groupId>org.apache.httpcomponents</groupId>
  223. <artifactId>httpclient</artifactId>
  224. <version>4.5.3</version>
  225. </dependency>
  226. <!-- websocket -->
  227. <dependency>
  228. <groupId>org.springframework.boot</groupId>
  229. <artifactId>spring-boot-starter-websocket</artifactId>
  230. </dependency>
  231. <dependency>
  232. <groupId>com.aliyun.oss</groupId>
  233. <artifactId>aliyun-sdk-oss</artifactId>
  234. <version>${aliyun.oss.version}</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>com.qcloud</groupId>
  238. <artifactId>cos_api</artifactId>
  239. <version>${qc.cos.version}</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.springframework.boot</groupId>
  243. <artifactId>spring-boot-autoconfigure</artifactId>
  244. <version>2.5.2</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.junit.jupiter</groupId>
  248. <artifactId>junit-jupiter</artifactId>
  249. <version>RELEASE</version>
  250. <scope>compile</scope>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.springframework.boot</groupId>
  254. <artifactId>spring-boot-test</artifactId>
  255. </dependency>
  256. <dependency>
  257. <groupId>junit</groupId>
  258. <artifactId>junit</artifactId>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.springframework</groupId>
  262. <artifactId>spring-test</artifactId>
  263. </dependency>
  264. </dependencies>
  265. <dependencyManagement>
  266. <dependencies>
  267. <!-- 七牛云SDK -->
  268. <dependency>
  269. <groupId>com.qiniu</groupId>
  270. <artifactId>qiniu-java-sdk</artifactId>
  271. <version>7.2.23</version>
  272. </dependency>
  273. </dependencies>
  274. </dependencyManagement>
  275. <build>
  276. <plugins>
  277. <!--<plugin>
  278. <groupId>org.springframework.boot</groupId>
  279. <artifactId>spring-boot-maven-plugin</artifactId>
  280. </plugin> -->
  281. <!--指定JDK编译版本 -->
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-compiler-plugin</artifactId>
  285. <configuration>
  286. <source>1.8</source>
  287. <target>1.8</target>
  288. <encoding>UTF-8</encoding>
  289. </configuration>
  290. </plugin>
  291. <!-- 打包跳过测试 -->
  292. <plugin>
  293. <groupId>org.apache.maven.plugins</groupId>
  294. <artifactId>maven-surefire-plugin</artifactId>
  295. <configuration>
  296. <skipTests>true</skipTests>
  297. </configuration>
  298. </plugin>
  299. <!-- 避免font文件的二进制文件格式压缩破坏 -->
  300. <plugin>
  301. <groupId>org.apache.maven.plugins</groupId>
  302. <artifactId>maven-resources-plugin</artifactId>
  303. <configuration>
  304. <nonFilteredFileExtensions>
  305. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  306. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  307. <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  308. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  309. <nonFilteredFileExtension>svg</nonFilteredFileExtension>
  310. </nonFilteredFileExtensions>
  311. </configuration>
  312. </plugin>
  313. </plugins>
  314. <resources>
  315. <resource>
  316. <directory>src/main/resources</directory>
  317. <filtering>true</filtering>
  318. </resource>
  319. <resource>
  320. <directory>src/main/java</directory>
  321. <includes>
  322. <include>**/*.xml</include>
  323. <include>**/*.json</include>
  324. <include>**/*.ftl</include>
  325. </includes>
  326. </resource>
  327. </resources>
  328. </build>
  329. </project>