pom.xml 23 KB

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