pom.xml 22 KB

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