pom.xml 23 KB

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