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