pom.xml 21 KB

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