pom.xml 23 KB

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