pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.taais</groupId>
  7. <artifactId>taais</artifactId>
  8. <version>${revision}</version>
  9. <name>taais</name>
  10. <description>taais</description>
  11. <properties>
  12. <revision>1.1.0</revision>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <java.version>21</java.version>
  16. <spring-boot.version>3.2.1</spring-boot.version>
  17. <mybatis-flex.version>1.7.7</mybatis-flex.version>
  18. <satoken.version>1.37.0</satoken.version>
  19. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  20. <HikariCP.version>5.0.1</HikariCP.version>
  21. <bitwalker.version>1.21</bitwalker.version>
  22. <kaptcha.version>2.3.3</kaptcha.version>
  23. <pagehelper.version>6.1.0</pagehelper.version>
  24. <fastjson.version>2.0.43</fastjson.version>
  25. <oshi.version>6.4.8</oshi.version>
  26. <commons.collections.version>3.2.2</commons.collections.version>
  27. <poi.version>5.2.3</poi.version>
  28. <easyexcel.version>3.3.3</easyexcel.version>
  29. <velocity.version>2.3</velocity.version>
  30. <jwt.version>0.9.1</jwt.version>
  31. <servlet-api.version>6.0.0</servlet-api.version>
  32. <guava.version>32.1.1-jre</guava.version>
  33. <flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
  34. <springdoc.version>2.3.0</springdoc.version>
  35. <springdoc-openapi-starter-common.version>2.3.0</springdoc-openapi-starter-common.version>
  36. <therapi-runtime-javadoc.version>0.15.0</therapi-runtime-javadoc.version>
  37. <snakeyaml.version>2.2</snakeyaml.version>
  38. <lombok.version>1.18.30</lombok.version>
  39. <mapstruct-plus.version>1.3.6</mapstruct-plus.version>
  40. <mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
  41. <hutool.version>5.8.24</hutool.version>
  42. <redisson.version>3.26.0</redisson.version>
  43. <lock4j.version>2.2.7</lock4j.version>
  44. <alibaba-ttl.version>2.14.4</alibaba-ttl.version>
  45. <spring-boot-admin.version>3.2.0</spring-boot-admin.version>
  46. <powerjob.version>4.3.6</powerjob.version>
  47. <!-- 离线IP地址定位库 -->
  48. <ip2region.version>2.7.0</ip2region.version>
  49. <!-- OSS 配置 -->
  50. <!-- <aws-java-sdk-s3.version>1.12.600</aws-java-sdk-s3.version>-->
  51. <aws.sdk.version>2.25.15</aws.sdk.version>
  52. <aws.crt.version>0.29.13</aws.crt.version>
  53. <!-- 加解密依赖库 -->
  54. <bcprov-jdk.version>1.77</bcprov-jdk.version>
  55. <!-- SMS 配置 -->
  56. <sms4j.version>3.1.0</sms4j.version>
  57. <!-- 插件版本 -->
  58. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  59. <maven-war-plugin.version>3.2.2</maven-war-plugin.version>
  60. <maven-compiler-plugin.verison>3.11.0</maven-compiler-plugin.verison>
  61. <maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
  62. <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
  63. </properties>
  64. <profiles>
  65. <profile>
  66. <id>dev</id>
  67. <properties>
  68. <!-- 环境标识,需要与配置文件的名称相对应 -->
  69. <profiles.active>dev</profiles.active>
  70. <logging.level>info</logging.level>
  71. </properties>
  72. <activation>
  73. <!-- 默认环境 -->
  74. <activeByDefault>true</activeByDefault>
  75. </activation>
  76. </profile>
  77. <profile>
  78. <id>prod</id>
  79. <properties>
  80. <profiles.active>prod</profiles.active>
  81. <logging.level>warn</logging.level>
  82. </properties>
  83. </profile>
  84. </profiles>
  85. <!-- 依赖声明 -->
  86. <dependencyManagement>
  87. <dependencies>
  88. <!-- SpringBoot的依赖配置-->
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-dependencies</artifactId>
  92. <version>${spring-boot.version}</version>
  93. <type>pom</type>
  94. <scope>import</scope>
  95. </dependency>
  96. <!-- hutool 的依赖配置-->
  97. <dependency>
  98. <groupId>cn.hutool</groupId>
  99. <artifactId>hutool-bom</artifactId>
  100. <version>${hutool.version}</version>
  101. <type>pom</type>
  102. <scope>import</scope>
  103. </dependency>
  104. <!-- common 的依赖配置-->
  105. <dependency>
  106. <groupId>com.taais</groupId>
  107. <artifactId>taais-common-bom</artifactId>
  108. <version>${revision}</version>
  109. <type>pom</type>
  110. <scope>import</scope>
  111. </dependency>
  112. <!--测试框架-->
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-test</artifactId>
  116. <version>${spring-boot.version}</version>
  117. <scope>test</scope>
  118. </dependency>
  119. <!-- 数据库连接池-->
  120. <dependency>
  121. <groupId>com.zaxxer</groupId>
  122. <artifactId>HikariCP</artifactId>
  123. <version>${HikariCP.version}</version>
  124. </dependency>
  125. <!-- mybatis-flex -->
  126. <dependency>
  127. <groupId>com.mybatis-flex</groupId>
  128. <artifactId>mybatis-flex-spring-boot3-starter</artifactId>
  129. <version>${mybatis-flex.version}</version>
  130. </dependency>
  131. <!-- Sa-Token 权限认证,在线文档:https://sa-token.cc -->
  132. <dependency>
  133. <groupId>cn.dev33</groupId>
  134. <artifactId>sa-token-spring-boot3-starter</artifactId>
  135. <version>${satoken.version}</version>
  136. </dependency>
  137. <!-- Sa-Token 整合 jwt -->
  138. <dependency>
  139. <groupId>cn.dev33</groupId>
  140. <artifactId>sa-token-jwt</artifactId>
  141. <version>${satoken.version}</version>
  142. <exclusions>
  143. <exclusion>
  144. <groupId>cn.hutool</groupId>
  145. <artifactId>hutool-all</artifactId>
  146. </exclusion>
  147. </exclusions>
  148. </dependency>
  149. <dependency>
  150. <groupId>cn.dev33</groupId>
  151. <artifactId>sa-token-core</artifactId>
  152. <version>${satoken.version}</version>
  153. </dependency>
  154. <!-- servlet包 -->
  155. <dependency>
  156. <groupId>jakarta.servlet</groupId>
  157. <artifactId>jakarta.servlet-api</artifactId>
  158. <version>${servlet-api.version}</version>
  159. </dependency>
  160. <!-- 解析客户端操作系统、浏览器等 -->
  161. <dependency>
  162. <groupId>eu.bitwalker</groupId>
  163. <artifactId>UserAgentUtils</artifactId>
  164. <version>${bitwalker.version}</version>
  165. </dependency>
  166. <!-- pagehelper 分页插件 -->
  167. <dependency>
  168. <groupId>com.github.pagehelper</groupId>
  169. <artifactId>pagehelper</artifactId>
  170. <version>${pagehelper.version}</version>
  171. </dependency>
  172. <!-- 获取系统信息 -->
  173. <dependency>
  174. <groupId>com.github.oshi</groupId>
  175. <artifactId>oshi-core</artifactId>
  176. <version>${oshi.version}</version>
  177. </dependency>
  178. <!-- excel工具 -->
  179. <dependency>
  180. <groupId>org.apache.poi</groupId>
  181. <artifactId>poi</artifactId>
  182. <version>${poi.version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.apache.poi</groupId>
  186. <artifactId>poi-ooxml</artifactId>
  187. <version>${poi.version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.alibaba</groupId>
  191. <artifactId>easyexcel</artifactId>
  192. <version>${easyexcel.version}</version>
  193. <exclusions>
  194. <exclusion>
  195. <groupId>org.apache.poi</groupId>
  196. <artifactId>poi-ooxml-schemas</artifactId>
  197. </exclusion>
  198. </exclusions>
  199. </dependency>
  200. <!-- velocity代码生成使用模板 -->
  201. <dependency>
  202. <groupId>org.apache.velocity</groupId>
  203. <artifactId>velocity-engine-core</artifactId>
  204. <version>${velocity.version}</version>
  205. </dependency>
  206. <!-- collections工具类 -->
  207. <dependency>
  208. <groupId>commons-collections</groupId>
  209. <artifactId>commons-collections</artifactId>
  210. <version>${commons.collections.version}</version>
  211. </dependency>
  212. <!-- 阿里JSON解析器 -->
  213. <dependency>
  214. <groupId>com.alibaba.fastjson2</groupId>
  215. <artifactId>fastjson2</artifactId>
  216. <version>${fastjson.version}</version>
  217. </dependency>
  218. <!-- Token生成与解析-->
  219. <dependency>
  220. <groupId>io.jsonwebtoken</groupId>
  221. <artifactId>jjwt</artifactId>
  222. <version>${jwt.version}</version>
  223. </dependency>
  224. <!-- 验证码 -->
  225. <dependency>
  226. <groupId>pro.fessional</groupId>
  227. <artifactId>kaptcha</artifactId>
  228. <version>${kaptcha.version}</version>
  229. </dependency>
  230. <!-- guava -->
  231. <dependency>
  232. <groupId>com.google.guava</groupId>
  233. <artifactId>guava</artifactId>
  234. <version>${guava.version}</version>
  235. </dependency>
  236. <!-- springdoc -->
  237. <dependency>
  238. <groupId>org.springdoc</groupId>
  239. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  240. <version>${springdoc.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.springdoc</groupId>
  244. <artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
  245. <version>${springdoc.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.springdoc</groupId>
  249. <artifactId>springdoc-openapi-starter-common</artifactId>
  250. <version>${springdoc-openapi-starter-common.version}</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>com.github.therapi</groupId>
  254. <artifactId>therapi-runtime-javadoc</artifactId>
  255. <version>${therapi-runtime-javadoc.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>io.github.linpeilie</groupId>
  259. <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
  260. <version>${mapstruct-plus.version}</version>
  261. </dependency>
  262. <!-- lombok-->
  263. <dependency>
  264. <groupId>org.projectlombok</groupId>
  265. <artifactId>lombok</artifactId>
  266. <version>${lombok.version}</version>
  267. </dependency>
  268. <!-- 临时修复 snakeyaml 漏洞 -->
  269. <dependency>
  270. <groupId>org.yaml</groupId>
  271. <artifactId>snakeyaml</artifactId>
  272. <version>${snakeyaml.version}</version>
  273. </dependency>
  274. <!--redisson-->
  275. <dependency>
  276. <groupId>org.redisson</groupId>
  277. <artifactId>redisson-spring-boot-starter</artifactId>
  278. <version>${redisson.version}</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>com.baomidou</groupId>
  282. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  283. <version>${lock4j.version}</version>
  284. </dependency>
  285. <!-- 离线IP地址定位库 ip2region -->
  286. <dependency>
  287. <groupId>org.lionsoul</groupId>
  288. <artifactId>ip2region</artifactId>
  289. <version>${ip2region.version}</version>
  290. </dependency>
  291. <!-- OSS 配置 -->
  292. <!-- <dependency>-->
  293. <!-- <groupId>com.amazonaws</groupId>-->
  294. <!-- <artifactId>aws-java-sdk-s3</artifactId>-->
  295. <!-- <version>${aws-java-sdk-s3.version}</version>-->
  296. <!-- </dependency>-->
  297. <!-- AWS SDK for Java 2.x -->
  298. <dependency>
  299. <groupId>software.amazon.awssdk</groupId>
  300. <artifactId>s3</artifactId>
  301. <version>${aws.sdk.version}</version>
  302. </dependency>
  303. <!-- 使用AWS基于 CRT 的 S3 客户端 -->
  304. <dependency>
  305. <groupId>software.amazon.awssdk.crt</groupId>
  306. <artifactId>aws-crt</artifactId>
  307. <version>${aws.crt.version}</version>
  308. </dependency>
  309. <!-- 基于 AWS CRT 的 S3 客户端的性能增强的 S3 传输管理器 -->
  310. <dependency>
  311. <groupId>software.amazon.awssdk</groupId>
  312. <artifactId>s3-transfer-manager</artifactId>
  313. <version>${aws.sdk.version}</version>
  314. </dependency>
  315. <!-- 加解密依赖库 -->
  316. <dependency>
  317. <groupId>org.bouncycastle</groupId>
  318. <artifactId>bcprov-jdk18on</artifactId>
  319. <version>${bcprov-jdk.version}</version>
  320. </dependency>
  321. <!--Annotation Processor-->
  322. <dependency>
  323. <groupId>org.springframework.boot</groupId>
  324. <artifactId>spring-boot-configuration-processor</artifactId>
  325. <version>${spring-boot.version}</version>
  326. </dependency>
  327. <dependency>
  328. <groupId>com.alibaba</groupId>
  329. <artifactId>transmittable-thread-local</artifactId>
  330. <version>${alibaba-ttl.version}</version>
  331. </dependency>
  332. <!-- 解压-->
  333. <dependency>
  334. <groupId>com.github.junrar</groupId>
  335. <artifactId>junrar</artifactId>
  336. <version>7.4.1</version>
  337. </dependency>
  338. <dependency>
  339. <groupId>net.lingala</groupId>
  340. <artifactId>zip4j</artifactId>
  341. <version>1.3.3</version>
  342. </dependency>
  343. <!--短信sms4j-->
  344. <!-- <dependency>-->
  345. <!-- <groupId>org.dromara.sms4j</groupId>-->
  346. <!-- <artifactId>sms4j-spring-boot-starter</artifactId>-->
  347. <!-- <version>${sms4j.version}</version>-->
  348. <!-- </dependency>-->
  349. <!-- spring-boot-admin监控-->
  350. <dependency>
  351. <groupId>de.codecentric</groupId>
  352. <artifactId>spring-boot-admin-starter-server</artifactId>
  353. <version>${spring-boot-admin.version}</version>
  354. </dependency>
  355. <dependency>
  356. <groupId>de.codecentric</groupId>
  357. <artifactId>spring-boot-admin-starter-client</artifactId>
  358. <version>${spring-boot-admin.version}</version>
  359. </dependency>
  360. <!-- PowerJob -->
  361. <dependency>
  362. <groupId>tech.powerjob</groupId>
  363. <artifactId>powerjob-worker-spring-boot-starter</artifactId>
  364. <version>${powerjob.version}</version>
  365. </dependency>
  366. <dependency>
  367. <groupId>tech.powerjob</groupId>
  368. <artifactId>powerjob-official-processors</artifactId>
  369. <version>${powerjob.version}</version>
  370. </dependency>
  371. <!-- PowerJob定时任务处理器-->
  372. <dependency>
  373. <groupId>com.taais</groupId>
  374. <artifactId>taais-job</artifactId>
  375. <version>${revision}</version>
  376. </dependency>
  377. <!-- 代码生成-->
  378. <dependency>
  379. <groupId>com.taais</groupId>
  380. <artifactId>taais-generator</artifactId>
  381. <version>${revision}</version>
  382. </dependency>
  383. <!-- 系统模块-->
  384. <dependency>
  385. <groupId>com.taais</groupId>
  386. <artifactId>taais-system</artifactId>
  387. <version>${revision}</version>
  388. </dependency>
  389. <!-- demo模块 -->
  390. <dependency>
  391. <groupId>com.taais</groupId>
  392. <artifactId>taais-demo</artifactId>
  393. <version>${revision}</version>
  394. </dependency>
  395. <!-- biz模块 -->
  396. <dependency>
  397. <groupId>com.taais</groupId>
  398. <artifactId>taais-biz</artifactId>
  399. <version>${revision}</version>
  400. </dependency>
  401. </dependencies>
  402. </dependencyManagement>
  403. <modules>
  404. <module>taais-admin</module>
  405. <module>taais-common</module>
  406. <module>taais-extra</module>
  407. <module>taais-modules</module>
  408. </modules>
  409. <packaging>pom</packaging>
  410. <build>
  411. <plugins>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-compiler-plugin</artifactId>
  415. <version>${maven-compiler-plugin.verison}</version>
  416. <configuration>
  417. <source>${java.version}</source>
  418. <target>${java.version}</target>
  419. <encoding>${project.build.sourceEncoding}</encoding>
  420. <annotationProcessorPaths>
  421. <path>
  422. <groupId>com.github.therapi</groupId>
  423. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  424. <version>${therapi-runtime-javadoc.version}</version>
  425. </path>
  426. <path>
  427. <groupId>org.projectlombok</groupId>
  428. <artifactId>lombok</artifactId>
  429. <version>${lombok.version}</version>
  430. </path>
  431. <path>
  432. <groupId>org.springframework.boot</groupId>
  433. <artifactId>spring-boot-configuration-processor</artifactId>
  434. <version>${spring-boot.version}</version>
  435. </path>
  436. <path>
  437. <groupId>io.github.linpeilie</groupId>
  438. <artifactId>mapstruct-plus-processor</artifactId>
  439. <version>${mapstruct-plus.version}</version>
  440. </path>
  441. <path>
  442. <groupId>org.projectlombok</groupId>
  443. <artifactId>lombok-mapstruct-binding</artifactId>
  444. <version>${mapstruct-plus.lombok.version}</version>
  445. </path>
  446. <path>
  447. <groupId>com.mybatis-flex</groupId>
  448. <artifactId>mybatis-flex-processor</artifactId>
  449. <version>${mybatis-flex.version}</version>
  450. </path>
  451. </annotationProcessorPaths>
  452. <compilerArgs>
  453. <arg>-parameters</arg>
  454. </compilerArgs>
  455. </configuration>
  456. </plugin>
  457. <!-- 版本号集中管理 -->
  458. <plugin>
  459. <groupId>org.codehaus.mojo</groupId>
  460. <artifactId>flatten-maven-plugin</artifactId>
  461. <version>${flatten-maven-plugin.version}</version>
  462. <configuration>
  463. <updatePomFile>true</updatePomFile>
  464. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  465. </configuration>
  466. <executions>
  467. <!-- enable flattening -->
  468. <execution>
  469. <id>flatten</id>
  470. <phase>process-resources</phase>
  471. <goals>
  472. <goal>flatten</goal>
  473. </goals>
  474. </execution>
  475. <!-- ensure proper cleanup -->
  476. <execution>
  477. <id>flatten.clean</id>
  478. <phase>clean</phase>
  479. <goals>
  480. <goal>clean</goal>
  481. </goals>
  482. </execution>
  483. </executions>
  484. </plugin>
  485. </plugins>
  486. <resources>
  487. <resource>
  488. <directory>src/main/resources</directory>
  489. <!-- 关闭过滤 -->
  490. <filtering>false</filtering>
  491. </resource>
  492. <resource>
  493. <directory>src/main/resources</directory>
  494. <!-- 引入所有 匹配文件进行过滤 -->
  495. <includes>
  496. <include>application*</include>
  497. <include>bootstrap*</include>
  498. <include>banner*</include>
  499. </includes>
  500. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  501. <filtering>true</filtering>
  502. </resource>
  503. </resources>
  504. </build>
  505. <repositories>
  506. <repository>
  507. <id>public</id>
  508. <name>huawei nexus</name>
  509. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  510. <releases>
  511. <enabled>true</enabled>
  512. </releases>
  513. </repository>
  514. </repositories>
  515. <pluginRepositories>
  516. <pluginRepository>
  517. <id>public</id>
  518. <name>huawei nexus</name>
  519. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  520. <releases>
  521. <enabled>true</enabled>
  522. </releases>
  523. <snapshots>
  524. <enabled>false</enabled>
  525. </snapshots>
  526. </pluginRepository>
  527. </pluginRepositories>
  528. </project>