pom.xml 18 KB

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