pom.xml 21 KB

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