pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.3.3.RELEASE</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>com.loan</groupId>
  13. <artifactId>system</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <properties>
  16. <java.version>8</java.version>
  17. <org.mapstruct.version>1.5.5.Final</org.mapstruct.version>
  18. <org.lombok.version>1.18.20</org.lombok.version>
  19. <commons-io.version>2.15.1</commons-io.version>
  20. </properties>
  21. <!-- 配置 e签宝 Maven 仓库 -->
  22. <repositories>
  23. <repository>
  24. <id>esign-public</id>
  25. <name>Esign Public Repository</name>
  26. <url>https://repo.esign.cn/repository/maven-public/</url>
  27. <releases>
  28. <enabled>true</enabled>
  29. <updatePolicy>always</updatePolicy>
  30. </releases>
  31. <snapshots>
  32. <enabled>true</enabled>
  33. <updatePolicy>always</updatePolicy>
  34. </snapshots>
  35. </repository>
  36. </repositories>
  37. <!-- 统一管理 commons-io,避免所有冲突 -->
  38. <dependencyManagement>
  39. <dependencies>
  40. <dependency>
  41. <groupId>commons-io</groupId>
  42. <artifactId>commons-io</artifactId>
  43. <version>${commons-io.version}</version>
  44. </dependency>
  45. </dependencies>
  46. </dependencyManagement>
  47. <dependencies>
  48. <!-- json -->
  49. <dependency>
  50. <groupId>org.json</groupId>
  51. <artifactId>json</artifactId>
  52. <version>20231013</version>
  53. </dependency>
  54. <!-- hutool -->
  55. <dependency>
  56. <groupId>cn.hutool</groupId>
  57. <artifactId>hutool-all</artifactId>
  58. <version>5.8.11</version>
  59. </dependency>
  60. <!-- httpclient -->
  61. <dependency>
  62. <groupId>org.apache.httpcomponents</groupId>
  63. <artifactId>httpclient</artifactId>
  64. <version>4.5.13</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.alibaba</groupId>
  68. <artifactId>fastjson</artifactId>
  69. <version>1.2.83</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.squareup.okhttp3</groupId>
  73. <artifactId>okhttp</artifactId>
  74. <version>4.10.0</version>
  75. </dependency>
  76. <!-- spring -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-cache</artifactId>
  80. <version>2.7.3</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.mybatis.spring.boot</groupId>
  84. <artifactId>mybatis-spring-boot-starter</artifactId>
  85. <version>2.0.1</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-data-jpa</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-security</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-web</artifactId>
  98. </dependency>
  99. <!-- lombok -->
  100. <dependency>
  101. <groupId>org.projectlombok</groupId>
  102. <artifactId>lombok</artifactId>
  103. <version>${org.lombok.version}</version>
  104. <optional>true</optional>
  105. </dependency>
  106. <!-- test -->
  107. <dependency>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-starter-test</artifactId>
  110. <scope>test</scope>
  111. <exclusions>
  112. <exclusion>
  113. <groupId>org.junit.vintage</groupId>
  114. <artifactId>junit-vintage-engine</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. <!-- aop -->
  119. <dependency>
  120. <groupId>org.springframework</groupId>
  121. <artifactId>spring-aspects</artifactId>
  122. <version>5.3.23</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>mysql</groupId>
  126. <artifactId>mysql-connector-java</artifactId>
  127. </dependency>
  128. <!-- jwt -->
  129. <dependency>
  130. <groupId>io.jsonwebtoken</groupId>
  131. <artifactId>jjwt</artifactId>
  132. <version>0.9.1</version>
  133. </dependency>
  134. <!-- mapstruct -->
  135. <dependency>
  136. <groupId>org.mapstruct</groupId>
  137. <artifactId>mapstruct</artifactId>
  138. <version>${org.mapstruct.version}</version>
  139. </dependency>
  140. <!-- fileupload(必须排除旧commons-io) -->
  141. <dependency>
  142. <groupId>commons-fileupload</groupId>
  143. <artifactId>commons-fileupload</artifactId>
  144. <version>1.3.3</version>
  145. <exclusions>
  146. <exclusion>
  147. <groupId>commons-io</groupId>
  148. <artifactId>commons-io</artifactId>
  149. </exclusion>
  150. </exclusions>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.apache.commons</groupId>
  154. <artifactId>commons-lang3</artifactId>
  155. <version>3.10</version>
  156. </dependency>
  157. <!-- 强制使用唯一版本 -->
  158. <dependency>
  159. <groupId>commons-io</groupId>
  160. <artifactId>commons-io</artifactId>
  161. </dependency>
  162. <!-- thumbnailator -->
  163. <dependency>
  164. <groupId>net.coobird</groupId>
  165. <artifactId>thumbnailator</artifactId>
  166. <version>0.4.12</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-starter-aop</artifactId>
  171. </dependency>
  172. <!-- redis -->
  173. <dependency>
  174. <groupId>org.springframework.boot</groupId>
  175. <artifactId>spring-boot-starter-redis</artifactId>
  176. <version>1.4.1.RELEASE</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.fasterxml.jackson.core</groupId>
  180. <artifactId>jackson-databind</artifactId>
  181. </dependency>
  182. <!-- poi-tl(排除 commons-io) -->
  183. <dependency>
  184. <groupId>com.deepoove</groupId>
  185. <artifactId>poi-tl</artifactId>
  186. <version>1.9.1</version>
  187. <exclusions>
  188. <exclusion>
  189. <groupId>commons-io</groupId>
  190. <artifactId>commons-io</artifactId>
  191. </exclusion>
  192. </exclusions>
  193. </dependency>
  194. <!-- Apache POI(排除 commons-io) -->
  195. <dependency>
  196. <groupId>org.apache.poi</groupId>
  197. <artifactId>poi</artifactId>
  198. <version>4.1.2</version>
  199. <exclusions>
  200. <exclusion>
  201. <groupId>commons-io</groupId>
  202. <artifactId>commons-io</artifactId>
  203. </exclusion>
  204. </exclusions>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.poi</groupId>
  208. <artifactId>poi-ooxml</artifactId>
  209. <version>4.1.2</version>
  210. <exclusions>
  211. <exclusion>
  212. <groupId>commons-io</groupId>
  213. <artifactId>commons-io</artifactId>
  214. </exclusion>
  215. </exclusions>
  216. </dependency>
  217. <!-- xdocreport(可能引旧版本,也排除) -->
  218. <dependency>
  219. <groupId>fr.opensagres.xdocreport</groupId>
  220. <artifactId>fr.opensagres.poi.xwpf.converter.core</artifactId>
  221. <version>2.0.2</version>
  222. <exclusions>
  223. <exclusion>
  224. <groupId>commons-io</groupId>
  225. <artifactId>commons-io</artifactId>
  226. </exclusion>
  227. </exclusions>
  228. </dependency>
  229. <dependency>
  230. <groupId>fr.opensagres.xdocreport</groupId>
  231. <artifactId>fr.opensagres.poi.xwpf.converter.pdf</artifactId>
  232. <version>2.0.2</version>
  233. <exclusions>
  234. <exclusion>
  235. <groupId>commons-io</groupId>
  236. <artifactId>commons-io</artifactId>
  237. </exclusion>
  238. </exclusions>
  239. </dependency>
  240. <!-- xfire(非常旧,同样必须排除 commons-io) -->
  241. <dependency>
  242. <groupId>org.codehaus.xfire</groupId>
  243. <artifactId>xfire-all</artifactId>
  244. <version>1.2.5</version>
  245. <exclusions>
  246. <exclusion>
  247. <groupId>commons-io</groupId>
  248. <artifactId>commons-io</artifactId>
  249. </exclusion>
  250. </exclusions>
  251. </dependency>
  252. <!-- 邮件 -->
  253. <dependency>
  254. <groupId>org.springframework.boot</groupId>
  255. <artifactId>spring-boot-starter-mail</artifactId>
  256. </dependency>
  257. <!-- knife4j -->
  258. <dependency>
  259. <groupId>com.github.xiaoymin</groupId>
  260. <artifactId>knife4j-spring-boot-starter</artifactId>
  261. <version>3.0.2</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.jodconverter</groupId>
  265. <artifactId>jodconverter-local</artifactId>
  266. <version>4.4.2</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.jodconverter</groupId>
  270. <artifactId>jodconverter-remote</artifactId>
  271. <version>4.4.2</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>javax.activation</groupId>
  275. <artifactId>activation</artifactId>
  276. <version>1.1.1</version>
  277. </dependency>
  278. <!-- e签宝SDK
  279. 如果Maven仓库无法访问,请使用以下方式之一:
  280. 1. 手动安装到本地仓库:
  281. mvn install:install-file -Dfile=esign-sdk-java-3.6.0.jar
  282. -DgroupId=com.esign -DartifactId=esign-sdk-java -Dversion=3.6.0 -Dpackaging=jar
  283. 2. 或者使用system scope指向本地jar文件(取消下面的注释):
  284. -->
  285. <!-- <dependency>-->
  286. <!-- <groupId>com.esign</groupId>-->
  287. <!-- <artifactId>esign-sdk-java</artifactId>-->
  288. <!-- <version>3.6.0</version>-->
  289. <!-- </dependency>-->
  290. <dependency>
  291. <groupId>esign-cn</groupId>
  292. <artifactId>paas-sdk</artifactId>
  293. <version>3.1.4</version>
  294. </dependency>
  295. <!--
  296. 备用方案:如果Maven仓库无法访问,取消下面注释并注释上面的依赖
  297. <dependency>
  298. <groupId>com.esign</groupId>
  299. <artifactId>esign-sdk-java</artifactId>
  300. <version>3.6.0</version>
  301. <scope>system</scope>
  302. <systemPath>${project.basedir}/lib/esign-sdk-java-3.6.0.jar</systemPath>
  303. </dependency>
  304. -->
  305. <!-- 阿里云OSS SDK -->
  306. <dependency>
  307. <groupId>com.aliyun</groupId>
  308. <artifactId>aliyun-java-sdk-core</artifactId>
  309. <version>4.5.10</version>
  310. </dependency>
  311. <dependency>
  312. <groupId>com.aliyun</groupId>
  313. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  314. <scope>compile</scope>
  315. <version>2.1.0</version>
  316. </dependency>
  317. <dependency>
  318. <groupId>com.aliyun.oss</groupId>
  319. <artifactId>aliyun-sdk-oss</artifactId>
  320. <version>3.10.2</version>
  321. </dependency>
  322. </dependencies>
  323. <build>
  324. <plugins>
  325. <plugin>
  326. <groupId>org.springframework.boot</groupId>
  327. <artifactId>spring-boot-maven-plugin</artifactId>
  328. </plugin>
  329. <plugin>
  330. <groupId>org.mybatis.generator</groupId>
  331. <artifactId>mybatis-generator-maven-plugin</artifactId>
  332. <version>1.3.6</version>
  333. <configuration>
  334. <configurationFile>GeneratorMapper.xml</configurationFile>
  335. <verbose>true</verbose>
  336. <overwrite>true</overwrite>
  337. </configuration>
  338. </plugin>
  339. <plugin>
  340. <groupId>org.apache.maven.plugins</groupId>
  341. <artifactId>maven-compiler-plugin</artifactId>
  342. <version>3.8.1</version>
  343. <configuration>
  344. <annotationProcessorPaths>
  345. <path>
  346. <groupId>org.mapstruct</groupId>
  347. <artifactId>mapstruct-processor</artifactId>
  348. <version>${org.mapstruct.version}</version>
  349. </path>
  350. <path>
  351. <groupId>org.projectlombok</groupId>
  352. <artifactId>lombok</artifactId>
  353. <version>${org.lombok.version}</version>
  354. </path>
  355. </annotationProcessorPaths>
  356. <source>8</source>
  357. <target>8</target>
  358. </configuration>
  359. </plugin>
  360. </plugins>
  361. </build>
  362. </project>