pom.xml 21 KB

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