pom.xml 22 KB

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