pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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>3.1.1</version>
  9. </parent>
  10. <groupId>com.backendsys</groupId>
  11. <artifactId>backendsys</artifactId>
  12. <version>1.0.0</version>
  13. <name>backendsys</name>
  14. <!-- 由于 Drone/Docker 目前找不到 JDK19 的镜像,所以需要用 17 -->
  15. <properties>
  16. <java.version>17</java.version>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. </properties>
  19. <dependencies>
  20. <!-- Spring Web -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. <!-- 排除 snakeyaml (忽略警告,可能会出现未知的问题)-->
  25. <exclusions>
  26. <exclusion>
  27. <groupId>org.yaml</groupId>
  28. <artifactId>snakeyaml</artifactId>
  29. </exclusion>
  30. </exclusions>
  31. </dependency>
  32. <!-- Nacos -->
  33. <!-- logback / log4j / slf4j -->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-logging</artifactId>
  37. </dependency>
  38. <!-- lombok -->
  39. <dependency>
  40. <groupId>org.projectlombok</groupId>
  41. <artifactId>lombok</artifactId>
  42. <optional>true</optional>
  43. </dependency>
  44. <!-- yaml -->
  45. <dependency>
  46. <groupId>org.yaml</groupId>
  47. <artifactId>snakeyaml</artifactId>
  48. <version>2.0</version>
  49. </dependency>
  50. <!-- Security -->
  51. <dependency>
  52. <groupId>org.springframework.security</groupId>
  53. <artifactId>spring-security-oauth2-authorization-server</artifactId>
  54. <version>1.1.1</version>
  55. </dependency>
  56. <!-- 验证码 -->
  57. <dependency>
  58. <groupId>pro.fessional</groupId>
  59. <artifactId>kaptcha</artifactId>
  60. <version>2.3.3</version>
  61. </dependency>
  62. <!-- Hutool -->
  63. <dependency>
  64. <groupId>cn.hutool</groupId>
  65. <artifactId>hutool-all</artifactId>
  66. <version>5.8.20</version>
  67. </dependency>
  68. <!-- fastJSON解析库 -->
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>fastjson</artifactId>
  72. <version>2.0.32</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.fasterxml.jackson.core</groupId>
  76. <artifactId>jackson-annotations</artifactId>
  77. <version>2.15.1</version>
  78. </dependency>
  79. <!-- AOP -->
  80. <!--<dependency>-->
  81. <!-- <groupId>org.aspectj</groupId>-->
  82. <!-- <artifactId>aspectjrt</artifactId>-->
  83. <!-- <version>1.9.20</version>-->
  84. <!--</dependency>-->
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-aop</artifactId>
  88. </dependency>
  89. <!-- JWT (备份 0.11.5)-->
  90. <dependency>
  91. <groupId>io.jsonwebtoken</groupId>
  92. <artifactId>jjwt-api</artifactId>
  93. <version>0.12.5</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>io.jsonwebtoken</groupId>
  97. <artifactId>jjwt-impl</artifactId>
  98. <version>0.12.5</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>io.jsonwebtoken</groupId>
  102. <artifactId>jjwt-jackson</artifactId>
  103. <version>0.12.5</version>
  104. </dependency>
  105. <!-- Http远程访问 -->
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-starter-webflux</artifactId>
  109. </dependency>
  110. <!-- 表单校验 -->
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-starter-validation</artifactId>
  114. </dependency>
  115. <!-- API分页 -->
  116. <dependency>
  117. <groupId>com.github.pagehelper</groupId>
  118. <artifactId>pagehelper-spring-boot-starter</artifactId>
  119. <version>1.4.7</version>
  120. </dependency>
  121. <!-- Redis -->
  122. <dependency>
  123. <groupId>org.springframework.boot</groupId>
  124. <artifactId>spring-boot-starter-data-redis</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.redisson</groupId>
  128. <artifactId>redisson</artifactId>
  129. <version>3.23.2</version>
  130. <exclusions>
  131. <exclusion>
  132. <groupId>org.slf4j</groupId>
  133. <artifactId>slf4j-simple</artifactId>
  134. </exclusion>
  135. </exclusions>
  136. </dependency>
  137. <!-- MyBatis & MySQL -->
  138. <!-- <dependency>-->
  139. <!-- <groupId>org.mybatis.spring.boot</groupId>-->
  140. <!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
  141. <!-- <version>3.0.2</version>-->
  142. <!-- </dependency>-->
  143. <dependency>
  144. <groupId>com.baomidou</groupId>
  145. <artifactId>mybatis-plus-boot-starter</artifactId>
  146. <version>3.5.3.2</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.mysql</groupId>
  150. <artifactId>mysql-connector-j</artifactId>
  151. <scope>runtime</scope>
  152. </dependency>
  153. <!-- Java音频库 -->
  154. <!-- <dependency>-->
  155. <!-- <groupId>ws.schild</groupId>-->
  156. <!-- <artifactId>jave-core</artifactId>-->
  157. <!-- <version>3.5.0</version>-->
  158. <!-- </dependency>-->
  159. <dependency>
  160. <groupId>org.bytedeco</groupId>
  161. <artifactId>javacv-platform</artifactId>
  162. <version>1.5.9</version>
  163. </dependency>
  164. <!--健康检查(硬盘/内存)-->
  165. <!-- <dependency>-->
  166. <!-- <groupId>org.springframework.boot</groupId>-->
  167. <!-- <artifactId>spring-boot-starter-actuator</artifactId>-->
  168. <!-- <version>3.1.2</version>-->
  169. <!-- </dependency>-->
  170. <!-- WebSocket依赖 -->
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-starter-websocket</artifactId>
  174. </dependency>
  175. <!-- Retrofit 库中用于添加 HTTP 请求头的注解 -->
  176. <dependency>
  177. <groupId>com.squareup.retrofit2</groupId>
  178. <artifactId>retrofit</artifactId>
  179. <version>2.9.0</version>
  180. </dependency>
  181. <!-- http://doc.wupaas.com/docs/easypoi/easypoi-1c0u97casmdlh -->
  182. <!-- https://central.sonatype.com/artifact/cn.afterturn/easypoi-base -->
  183. <!-- Easypoi (Simple) (Excel模型) -->
  184. <dependency>
  185. <groupId>cn.afterturn</groupId>
  186. <artifactId>easypoi-base</artifactId>
  187. <version>4.5.0</version>
  188. </dependency>
  189. <!-- 阿里云 OSS -->
  190. <dependency>
  191. <groupId>com.aliyun.oss</groupId>
  192. <artifactId>aliyun-sdk-oss</artifactId>
  193. <version>3.15.1</version>
  194. <exclusions>
  195. <exclusion>
  196. <groupId>org.apache.httpcomponents</groupId>
  197. <artifactId>httpclient</artifactId>
  198. </exclusion>
  199. </exclusions>
  200. </dependency>
  201. <!-- 阿里云 通义万相 系列 -->
  202. <dependency>
  203. <groupId>com.alibaba</groupId>
  204. <artifactId>dashscope-sdk-java</artifactId>
  205. <version>2.10.1</version>
  206. <exclusions>
  207. <exclusion>
  208. <groupId>org.slf4j</groupId>
  209. <artifactId>slf4j-simple</artifactId>
  210. </exclusion>
  211. </exclusions>
  212. </dependency>
  213. <!-- 腾讯云 COS -->
  214. <dependency>
  215. <groupId>com.qcloud</groupId>
  216. <artifactId>cos_api</artifactId>
  217. <version>5.6.205</version>
  218. </dependency>
  219. <!-- 腾讯云 STS -->
  220. <dependency>
  221. <groupId>com.qcloud</groupId>
  222. <artifactId>cos-sts_api</artifactId>
  223. <version>3.1.1</version>
  224. </dependency>
  225. <!-- 腾讯云 -->
  226. <dependency>
  227. <groupId>com.tencentcloudapi</groupId>
  228. <artifactId>tencentcloud-sdk-java</artifactId>
  229. <version>3.1.978</version>
  230. </dependency>
  231. <!-- 腾讯云 混元大模型 系列 -->
  232. <dependency>
  233. <groupId>com.tencentcloudapi</groupId>
  234. <artifactId>tencentcloud-sdk-java-common</artifactId>
  235. <version>3.1.972</version>
  236. </dependency>
  237. <!-- Tinypng 图片压缩 -->
  238. <!-- <dependency>-->
  239. <!-- <groupId>com.tinify</groupId>-->
  240. <!-- <artifactId>tinify</artifactId>-->
  241. <!-- <version>RELEASE</version>-->
  242. <!-- </dependency>-->
  243. <!-- 图片压缩插件 -->
  244. <dependency>
  245. <groupId>net.coobird</groupId>
  246. <artifactId>thumbnailator</artifactId>
  247. <version>0.4.20</version>
  248. </dependency>
  249. <!-- 字节 (火山引擎/豆包同款) (包的版本号不对) -->
  250. <!-- <dependency>-->
  251. <!-- <groupId>com.volcengine</groupId>-->
  252. <!-- <artifactId>volc-sdk-java</artifactId>-->
  253. <!-- <version>1.0.150</version>-->
  254. <!-- </dependency>-->
  255. <!--Java 9及以上的版本,则需要添加jaxb相关依赖-->
  256. <dependency>
  257. <groupId>javax.xml.bind</groupId>
  258. <artifactId>jaxb-api</artifactId>
  259. <version>2.3.1</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>javax.activation</groupId>
  263. <artifactId>activation</artifactId>
  264. <version>1.1.1</version>
  265. </dependency>
  266. <!-- no more than 2.3.3-->
  267. <dependency>
  268. <groupId>org.glassfish.jaxb</groupId>
  269. <artifactId>jaxb-runtime</artifactId>
  270. <version>2.3.3</version>
  271. </dependency>
  272. <!-- 微信支付 SDK -->
  273. <!-- https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay6_0.shtml -->
  274. <!-- https://github.com/wechatpay-apiv3/wechatpay-java -->
  275. <dependency>
  276. <groupId>com.github.wechatpay-apiv3</groupId>
  277. <artifactId>wechatpay-java</artifactId>
  278. <version>0.2.12</version>
  279. </dependency>
  280. <!-- 美图AI SDK 测试 -->
  281. <!-- 客服:还在内测 -->
  282. <dependency>
  283. <groupId>com.huaweicloud</groupId>
  284. <artifactId>esdk-obs-java-bundle</artifactId>
  285. <version>3.23.5</version>
  286. </dependency>
  287. <!-- 紫鸟科技SDK (私有库)-->
  288. <dependency>
  289. <groupId>com.ziniao</groupId>
  290. <artifactId>ziniao-sdk-java</artifactId>
  291. <version>5.1.0</version>
  292. </dependency>
  293. <!-- <dependency>-->
  294. <!-- <groupId>com.ziniao</groupId>-->
  295. <!-- <artifactId>ziniao-sdk-java</artifactId>-->
  296. <!-- <version>5.1.0</version>-->
  297. <!-- <scope>system</scope>-->
  298. <!-- <systemPath>${project.basedir}/libs/ziniao-sdk-java-5.1.0.jar</systemPath>-->
  299. <!-- </dependency>-->
  300. <!-- 火山AI SDK 测试-->
  301. <!-- <dependency>-->
  302. <!-- <groupId>com.volcengine</groupId>-->
  303. <!-- <artifactId>volc-sdk-java</artifactId>-->
  304. <!-- <version>1.0.148</version>-->
  305. <!-- </dependency>-->
  306. <!-- <dependency>-->
  307. <!-- <groupId>com.volcengine</groupId>-->
  308. <!-- <artifactId>volcengine-java-sdk-ecs</artifactId>-->
  309. <!-- <version>0.1.99</version>-->
  310. <!-- </dependency>-->
  311. <!-- <dependency>-->
  312. <!-- <groupId>com.volcengine</groupId>-->
  313. <!-- <artifactId>volcengine-java-sdk-core</artifactId>-->
  314. <!-- <version>0.1.99</version>-->
  315. <!-- </dependency>-->
  316. <!-- <dependency>-->
  317. <!-- <groupId>com.volcengine</groupId>-->
  318. <!-- <artifactId>volcengine-java-sdk-bom</artifactId>-->
  319. <!-- <version>0.1.99</version>-->
  320. <!-- <type>pom</type>-->
  321. <!-- <scope>import</scope>-->
  322. <!-- </dependency>-->
  323. <!-- <dependency>-->
  324. <!-- <groupId>com.fasterxml.jackson.core</groupId>-->
  325. <!-- <artifactId>jackson-databind</artifactId>-->
  326. <!-- <version>2.12.5</version>-->
  327. <!-- </dependency>-->
  328. <!-- <dependency>-->
  329. <!-- <groupId>com.squareup.okhttp3</groupId>-->
  330. <!-- <artifactId>okhttp</artifactId>-->
  331. <!-- <version>4.9.3</version>-->
  332. <!-- </dependency>-->
  333. <!-- <dependency>-->
  334. <!-- <groupId>org.springframework.boot</groupId>-->
  335. <!-- <artifactId>spring-boot-starter-test</artifactId>-->
  336. <!-- <scope>test</scope>-->
  337. <!-- </dependency>-->
  338. <!-- <dependency>-->
  339. <!-- <groupId>org.springframework.security</groupId>-->
  340. <!-- <artifactId>spring-security-test</artifactId>-->
  341. <!-- <scope>test</scope>-->
  342. <!-- </dependency>-->
  343. <!-- Swagger -->
  344. <dependency>
  345. <groupId>org.springdoc</groupId>
  346. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  347. <version>2.6.0</version>
  348. </dependency>
  349. </dependencies>
  350. <profiles>
  351. <profile>
  352. <id>local</id>
  353. <properties>
  354. <profile.active>local</profile.active>
  355. </properties>
  356. <activation>
  357. <activeByDefault>true</activeByDefault>
  358. </activation>
  359. </profile>
  360. <profile>
  361. <id>dev</id>
  362. <properties>
  363. <profile.active>dev</profile.active>
  364. </properties>
  365. </profile>
  366. </profiles>
  367. <build>
  368. <finalName>${project.artifactId}</finalName>
  369. <resources>
  370. <!-- 扫描src/main/java下所有xx.xml文件 -->
  371. <resource>
  372. <directory>src/main/java</directory>
  373. <includes>
  374. <include>**/*.xml</include>
  375. </includes>
  376. </resource>
  377. <!-- 定义过滤资源 -->
  378. <resource>
  379. <directory>src/main/resources</directory>
  380. <filtering>true</filtering>
  381. <excludes>
  382. <exclude>**/*.eot</exclude>
  383. <exclude>**/*.ttf</exclude>
  384. <exclude>**/*.woff</exclude>
  385. <exclude>**/*.woff2</exclude>
  386. </excludes>
  387. </resource>
  388. <!-- 定义非过滤资源 -->
  389. <resource>
  390. <directory>src/main/resources</directory>
  391. <filtering>false</filtering>
  392. <!-- 仅包含字体文件 -->
  393. <includes>
  394. <include>**/*.eot</include>
  395. <include>**/*.ttf</include>
  396. <include>**/*.woff</include>
  397. <include>**/*.woff2</include>
  398. </includes>
  399. </resource>
  400. </resources>
  401. <!--<finalName>backendsys</finalName>-->
  402. <plugins>
  403. <plugin>
  404. <groupId>org.apache.maven.plugins</groupId>
  405. <artifactId>maven-compiler-plugin</artifactId>
  406. <version>3.8.1</version>
  407. <configuration>
  408. <parameters>true</parameters>
  409. <source>${java.version}</source>
  410. <target>${java.version}</target>
  411. <encoding>${project.build.sourceEncoding}</encoding>
  412. </configuration>
  413. </plugin>
  414. <!-- 如果不分包,则此处必填 -->
  415. <!-- <plugin>-->
  416. <!-- <groupId>org.springframework.boot</groupId>-->
  417. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  418. <!-- </plugin>-->
  419. <!-- 创建一个不包含依赖的jar包 -->
  420. <plugin>
  421. <groupId>org.springframework.boot</groupId>
  422. <artifactId>spring-boot-maven-plugin</artifactId>
  423. <configuration>
  424. <mainClass>com.backendsys.Application</mainClass>
  425. <layout>ZIP</layout>
  426. <includes>
  427. <include>
  428. <groupId>nothing</groupId>
  429. <artifactId>nothing</artifactId>
  430. </include>
  431. </includes>
  432. </configuration>
  433. <executions>
  434. <execution>
  435. <goals>
  436. <goal>repackage</goal>
  437. </goals>
  438. </execution>
  439. </executions>
  440. </plugin>
  441. <!-- 将第三方依赖包拷贝到lib目录 (没有更新时注释)(第一次部署需要取消注释) -->
  442. <!-- <plugin>-->
  443. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  444. <!-- <artifactId>maven-dependency-plugin</artifactId>-->
  445. <!-- <executions>-->
  446. <!-- <execution>-->
  447. <!-- <id>copy-dependencies</id>-->
  448. <!-- <phase>package</phase>-->
  449. <!-- <goals>-->
  450. <!-- <goal>copy-dependencies</goal>-->
  451. <!-- </goals>-->
  452. <!-- <configuration>-->
  453. <!-- &lt;!&ndash; <outputDirectory>${project.build.directory}/lib</outputDirectory> &ndash;&gt;-->
  454. <!-- <outputDirectory>libs</outputDirectory>-->
  455. <!-- </configuration>-->
  456. <!-- </execution>-->
  457. <!-- </executions>-->
  458. <!-- </plugin>-->
  459. </plugins>
  460. </build>
  461. <repositories>
  462. <repository>
  463. <id>public</id>
  464. <name>aliyun nexus</name>
  465. <url>https://maven.aliyun.com/repository/public</url>
  466. <releases>
  467. <enabled>true</enabled>
  468. </releases>
  469. </repository>
  470. </repositories>
  471. </project>