pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.dromara</groupId>
  6. <artifactId>ruoyi-vue-plus</artifactId>
  7. <version>${revision}</version>
  8. <name>RuoYi-Vue-Plus</name>
  9. <url>https://gitee.com/dromara/RuoYi-Vue-Plus</url>
  10. <description>Dromara 杭州第一技师学院智慧校园管理系统</description>
  11. <properties>
  12. <revision>5.4.0</revision>
  13. <spring-boot.version>3.4.6</spring-boot.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <java.version>17</java.version>
  17. <mybatis.version>3.5.16</mybatis.version>
  18. <springdoc.version>2.8.8</springdoc.version>
  19. <therapi-javadoc.version>0.15.0</therapi-javadoc.version>
  20. <fastexcel.version>1.2.0</fastexcel.version>
  21. <velocity.version>2.3</velocity.version>
  22. <satoken.version>1.42.0</satoken.version>
  23. <mybatis-plus.version>3.5.12</mybatis-plus.version>
  24. <p6spy.version>3.9.1</p6spy.version>
  25. <hutool.version>5.8.35</hutool.version>
  26. <spring-boot-admin.version>3.4.7</spring-boot-admin.version>
  27. <redisson.version>3.45.1</redisson.version>
  28. <lock4j.version>2.2.7</lock4j.version>
  29. <dynamic-ds.version>4.3.1</dynamic-ds.version>
  30. <snailjob.version>1.5.0</snailjob.version>
  31. <mapstruct-plus.version>1.5.0</mapstruct-plus.version>
  32. <mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
  33. <lombok.version>1.18.36</lombok.version>
  34. <bouncycastle.version>1.80</bouncycastle.version>
  35. <justauth.version>1.16.7</justauth.version>
  36. <!-- 离线IP地址定位库 -->
  37. <ip2region.version>2.7.0</ip2region.version>
  38. <!-- OSS 配置 -->
  39. <aws.sdk.version>2.28.22</aws.sdk.version>
  40. <!-- SMS 配置 -->
  41. <sms4j.version>3.3.4</sms4j.version>
  42. <!-- 限制框架中的fastjson版本 -->
  43. <fastjson.version>1.2.83</fastjson.version>
  44. <!-- 面向运行时的D-ORM依赖 -->
  45. <anyline.version>8.7.2-20250101</anyline.version>
  46. <!-- 工作流配置 -->
  47. <warm-flow.version>1.7.3</warm-flow.version>
  48. <!-- 插件版本 -->
  49. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  50. <maven-war-plugin.version>3.2.2</maven-war-plugin.version>
  51. <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
  52. <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
  53. <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
  54. <!-- 打包默认跳过测试 -->
  55. <skipTests>true</skipTests>
  56. </properties>
  57. <profiles>
  58. <profile>
  59. <id>local</id>
  60. <properties>
  61. <!-- 环境标识,需要与配置文件的名称相对应 -->
  62. <profiles.active>local</profiles.active>
  63. <logging.level>info</logging.level>
  64. <monitor.username>ruoyi</monitor.username>
  65. <monitor.password>123456</monitor.password>
  66. </properties>
  67. </profile>
  68. <profile>
  69. <id>dev</id>
  70. <properties>
  71. <!-- 环境标识,需要与配置文件的名称相对应 -->
  72. <profiles.active>dev</profiles.active>
  73. <logging.level>info</logging.level>
  74. <monitor.username>ruoyi</monitor.username>
  75. <monitor.password>123456</monitor.password>
  76. </properties>
  77. <activation>
  78. <!-- 默认环境 -->
  79. <activeByDefault>true</activeByDefault>
  80. </activation>
  81. </profile>
  82. <profile>
  83. <id>prod-local</id>
  84. <properties>
  85. <!-- 生产环境本地配置 -->
  86. <profiles.active>prod-local</profiles.active>
  87. <logging.level>warn</logging.level>
  88. <monitor.username>ruoyi</monitor.username>
  89. <monitor.password>123456</monitor.password>
  90. </properties>
  91. </profile>
  92. <profile>
  93. <id>prod</id>
  94. <properties>
  95. <profiles.active>prod</profiles.active>
  96. <logging.level>warn</logging.level>
  97. <monitor.username>ruoyi</monitor.username>
  98. <monitor.password>123456</monitor.password>
  99. </properties>
  100. </profile>
  101. </profiles>
  102. <!-- 依赖声明 -->
  103. <dependencyManagement>
  104. <dependencies>
  105. <!-- SpringBoot的依赖配置-->
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-dependencies</artifactId>
  109. <version>${spring-boot.version}</version>
  110. <type>pom</type>
  111. <scope>import</scope>
  112. </dependency>
  113. <!-- hutool 的依赖配置-->
  114. <dependency>
  115. <groupId>cn.hutool</groupId>
  116. <artifactId>hutool-bom</artifactId>
  117. <version>${hutool.version}</version>
  118. <type>pom</type>
  119. <scope>import</scope>
  120. </dependency>
  121. <!-- Warm-Flow国产工作流引擎, 在线文档:http://warm-flow.cn/ -->
  122. <dependency>
  123. <groupId>org.dromara.warm</groupId>
  124. <artifactId>warm-flow-mybatis-plus-sb3-starter</artifactId>
  125. <version>${warm-flow.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.dromara.warm</groupId>
  129. <artifactId>warm-flow-plugin-ui-sb-web</artifactId>
  130. <version>${warm-flow.version}</version>
  131. </dependency>
  132. <!-- JustAuth 的依赖配置-->
  133. <dependency>
  134. <groupId>me.zhyd.oauth</groupId>
  135. <artifactId>JustAuth</artifactId>
  136. <version>${justauth.version}</version>
  137. </dependency>
  138. <!-- common 的依赖配置-->
  139. <dependency>
  140. <groupId>org.dromara</groupId>
  141. <artifactId>ruoyi-common-bom</artifactId>
  142. <version>${revision}</version>
  143. <type>pom</type>
  144. <scope>import</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.springdoc</groupId>
  148. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  149. <version>${springdoc.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.github.therapi</groupId>
  153. <artifactId>therapi-runtime-javadoc</artifactId>
  154. <version>${therapi-javadoc.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.projectlombok</groupId>
  158. <artifactId>lombok</artifactId>
  159. <version>${lombok.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>cn.idev.excel</groupId>
  163. <artifactId>fastexcel</artifactId>
  164. <version>${fastexcel.version}</version>
  165. </dependency>
  166. <!-- velocity代码生成使用模板 -->
  167. <dependency>
  168. <groupId>org.apache.velocity</groupId>
  169. <artifactId>velocity-engine-core</artifactId>
  170. <version>${velocity.version}</version>
  171. </dependency>
  172. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  173. <dependency>
  174. <groupId>cn.dev33</groupId>
  175. <artifactId>sa-token-spring-boot3-starter</artifactId>
  176. <version>${satoken.version}</version>
  177. </dependency>
  178. <!-- Sa-Token 整合 jwt -->
  179. <dependency>
  180. <groupId>cn.dev33</groupId>
  181. <artifactId>sa-token-jwt</artifactId>
  182. <version>${satoken.version}</version>
  183. <exclusions>
  184. <exclusion>
  185. <groupId>cn.hutool</groupId>
  186. <artifactId>hutool-all</artifactId>
  187. </exclusion>
  188. </exclusions>
  189. </dependency>
  190. <dependency>
  191. <groupId>cn.dev33</groupId>
  192. <artifactId>sa-token-core</artifactId>
  193. <version>${satoken.version}</version>
  194. </dependency>
  195. <!-- dynamic-datasource 多数据源-->
  196. <dependency>
  197. <groupId>com.baomidou</groupId>
  198. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  199. <version>${dynamic-ds.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.mybatis</groupId>
  203. <artifactId>mybatis</artifactId>
  204. <version>${mybatis.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.baomidou</groupId>
  208. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  209. <version>${mybatis-plus.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.baomidou</groupId>
  213. <artifactId>mybatis-plus-jsqlparser</artifactId>
  214. <version>${mybatis-plus.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.baomidou</groupId>
  218. <artifactId>mybatis-plus-annotation</artifactId>
  219. <version>${mybatis-plus.version}</version>
  220. </dependency>
  221. <!-- sql性能分析插件 -->
  222. <dependency>
  223. <groupId>p6spy</groupId>
  224. <artifactId>p6spy</artifactId>
  225. <version>${p6spy.version}</version>
  226. </dependency>
  227. <!-- AWS SDK for Java 2.x -->
  228. <dependency>
  229. <groupId>software.amazon.awssdk</groupId>
  230. <artifactId>s3</artifactId>
  231. <version>${aws.sdk.version}</version>
  232. </dependency>
  233. <!-- 基于 AWS CRT 的 S3 客户端的性能增强的 S3 传输管理器 -->
  234. <dependency>
  235. <groupId>software.amazon.awssdk</groupId>
  236. <artifactId>s3-transfer-manager</artifactId>
  237. <version>${aws.sdk.version}</version>
  238. </dependency>
  239. <!-- 将基于 Netty 的 HTTP 客户端从类路径中移除 -->
  240. <dependency>
  241. <groupId>software.amazon.awssdk</groupId>
  242. <artifactId>netty-nio-client</artifactId>
  243. <version>${aws.sdk.version}</version>
  244. </dependency>
  245. <!--短信sms4j-->
  246. <dependency>
  247. <groupId>org.dromara.sms4j</groupId>
  248. <artifactId>sms4j-spring-boot-starter</artifactId>
  249. <version>${sms4j.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>de.codecentric</groupId>
  253. <artifactId>spring-boot-admin-starter-server</artifactId>
  254. <version>${spring-boot-admin.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>de.codecentric</groupId>
  258. <artifactId>spring-boot-admin-starter-client</artifactId>
  259. <version>${spring-boot-admin.version}</version>
  260. </dependency>
  261. <!--redisson-->
  262. <dependency>
  263. <groupId>org.redisson</groupId>
  264. <artifactId>redisson-spring-boot-starter</artifactId>
  265. <version>${redisson.version}</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>com.baomidou</groupId>
  269. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  270. <version>${lock4j.version}</version>
  271. </dependency>
  272. <!-- SnailJob Client -->
  273. <dependency>
  274. <groupId>com.aizuda</groupId>
  275. <artifactId>snail-job-client-starter</artifactId>
  276. <version>${snailjob.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>com.aizuda</groupId>
  280. <artifactId>snail-job-client-job-core</artifactId>
  281. <version>${snailjob.version}</version>
  282. </dependency>
  283. <!-- 加密包引入 -->
  284. <dependency>
  285. <groupId>org.bouncycastle</groupId>
  286. <artifactId>bcprov-jdk15to18</artifactId>
  287. <version>${bouncycastle.version}</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>io.github.linpeilie</groupId>
  291. <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
  292. <version>${mapstruct-plus.version}</version>
  293. </dependency>
  294. <!-- 离线IP地址定位库 ip2region -->
  295. <dependency>
  296. <groupId>org.lionsoul</groupId>
  297. <artifactId>ip2region</artifactId>
  298. <version>${ip2region.version}</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>com.alibaba</groupId>
  302. <artifactId>fastjson</artifactId>
  303. <version>${fastjson.version}</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.dromara</groupId>
  307. <artifactId>ruoyi-system</artifactId>
  308. <version>${revision}</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>org.dromara</groupId>
  312. <artifactId>ruoyi-job</artifactId>
  313. <version>${revision}</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.dromara</groupId>
  317. <artifactId>ruoyi-generator</artifactId>
  318. <version>${revision}</version>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.dromara</groupId>
  322. <artifactId>ruoyi-demo</artifactId>
  323. <version>${revision}</version>
  324. </dependency>
  325. <!-- 工作流模块 -->
  326. <dependency>
  327. <groupId>org.dromara</groupId>
  328. <artifactId>ruoyi-workflow</artifactId>
  329. <version>${revision}</version>
  330. </dependency>
  331. <!-- 后勤管理模块 -->
  332. <dependency>
  333. <groupId>org.dromara</groupId>
  334. <artifactId>ruoyi-hq</artifactId>
  335. <version>${revision}</version>
  336. </dependency>
  337. <!-- 人事管理模块 -->
  338. <dependency>
  339. <groupId>org.dromara</groupId>
  340. <artifactId>ruoyi-rs</artifactId>
  341. <version>${revision}</version>
  342. </dependency>
  343. <!-- 财务管理模块 -->
  344. <dependency>
  345. <groupId>org.dromara</groupId>
  346. <artifactId>ruoyi-cw</artifactId>
  347. <version>${revision}</version>
  348. </dependency>
  349. <!-- 学工管理模块 -->
  350. <dependency>
  351. <groupId>org.dromara</groupId>
  352. <artifactId>ruoyi-xg</artifactId>
  353. <version>${revision}</version>
  354. </dependency>
  355. <!-- 学工管理信息系统模块 -->
  356. <!-- <dependency>
  357. <groupId>org.dromara</groupId>
  358. <artifactId>ruoyi-xg-xx</artifactId>
  359. <version>${revision}</version>
  360. </dependency> -->
  361. <!-- 招生就业管理模块 -->
  362. <dependency>
  363. <groupId>org.dromara</groupId>
  364. <artifactId>ruoyi-zsjy</artifactId>
  365. <version>${revision}</version>
  366. </dependency>
  367. <!-- 安全保卫管理模块 -->
  368. <dependency>
  369. <groupId>org.dromara</groupId>
  370. <artifactId>ruoyi-aqbw</artifactId>
  371. <version>${revision}</version>
  372. </dependency>
  373. <!-- 心理健康管理模块 -->
  374. <dependency>
  375. <groupId>org.dromara</groupId>
  376. <artifactId>ruoyi-xljk</artifactId>
  377. <version>${revision}</version>
  378. </dependency>
  379. <!-- 招生就业管理模块 -->
  380. <dependency>
  381. <groupId>org.dromara</groupId>
  382. <artifactId>ruoyi-zsjy</artifactId>
  383. <version>${revision}</version>
  384. </dependency>
  385. <!-- 社团管理模块 -->
  386. <!-- <dependency>
  387. <groupId>org.dromara</groupId>
  388. <artifactId>ruoyi-stgl</artifactId>
  389. <version>${revision}</version>
  390. </dependency> -->
  391. </dependencies>
  392. </dependencyManagement>
  393. <modules>
  394. <module>ruoyi-admin</module>
  395. <module>ruoyi-common</module>
  396. <module>ruoyi-extend</module>
  397. <module>ruoyi-modules</module>
  398. </modules>
  399. <packaging>pom</packaging>
  400. <build>
  401. <plugins>
  402. <plugin>
  403. <groupId>org.apache.maven.plugins</groupId>
  404. <artifactId>maven-compiler-plugin</artifactId>
  405. <version>${maven-compiler-plugin.version}</version>
  406. <configuration>
  407. <source>${java.version}</source>
  408. <target>${java.version}</target>
  409. <encoding>${project.build.sourceEncoding}</encoding>
  410. <annotationProcessorPaths>
  411. <path>
  412. <groupId>com.github.therapi</groupId>
  413. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  414. <version>${therapi-javadoc.version}</version>
  415. </path>
  416. <path>
  417. <groupId>org.projectlombok</groupId>
  418. <artifactId>lombok</artifactId>
  419. <version>${lombok.version}</version>
  420. </path>
  421. <path>
  422. <groupId>org.springframework.boot</groupId>
  423. <artifactId>spring-boot-configuration-processor</artifactId>
  424. <version>${spring-boot.version}</version>
  425. </path>
  426. <path>
  427. <groupId>io.github.linpeilie</groupId>
  428. <artifactId>mapstruct-plus-processor</artifactId>
  429. <version>${mapstruct-plus.version}</version>
  430. </path>
  431. <path>
  432. <groupId>org.projectlombok</groupId>
  433. <artifactId>lombok-mapstruct-binding</artifactId>
  434. <version>${mapstruct-plus.lombok.version}</version>
  435. </path>
  436. </annotationProcessorPaths>
  437. <compilerArgs>
  438. <arg>-parameters</arg>
  439. </compilerArgs>
  440. </configuration>
  441. </plugin>
  442. <!-- 单元测试使用 -->
  443. <plugin>
  444. <groupId>org.apache.maven.plugins</groupId>
  445. <artifactId>maven-surefire-plugin</artifactId>
  446. <version>${maven-surefire-plugin.version}</version>
  447. <configuration>
  448. <argLine>-Dfile.encoding=UTF-8</argLine>
  449. <!-- 根据打包环境执行对应的@Tag测试方法 -->
  450. <groups>${profiles.active}</groups>
  451. <!-- 排除标签 -->
  452. <excludedGroups>exclude</excludedGroups>
  453. <parallel>none</parallel> <!-- 彻底禁用并行 -->
  454. <threadCount>1</threadCount> <!-- 单线程 -->
  455. <forkCount>1</forkCount> <!-- 单独 fork 进程 -->
  456. <reuseForks>false</reuseForks> <!-- 不重用 fork -->
  457. <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
  458. <timeout>60000</timeout> <!-- 60秒超时 -->
  459. </configuration>
  460. </plugin>
  461. <!-- 统一版本号管理 -->
  462. <plugin>
  463. <groupId>org.codehaus.mojo</groupId>
  464. <artifactId>flatten-maven-plugin</artifactId>
  465. <version>${flatten-maven-plugin.version}</version>
  466. <configuration>
  467. <updatePomFile>true</updatePomFile>
  468. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  469. </configuration>
  470. <executions>
  471. <execution>
  472. <id>flatten</id>
  473. <phase>process-resources</phase>
  474. <goals>
  475. <goal>flatten</goal>
  476. </goals>
  477. </execution>
  478. <execution>
  479. <id>flatten.clean</id>
  480. <phase>clean</phase>
  481. <goals>
  482. <goal>clean</goal>
  483. </goals>
  484. </execution>
  485. </executions>
  486. </plugin>
  487. </plugins>
  488. <resources>
  489. <resource>
  490. <directory>src/main/resources</directory>
  491. <!-- 关闭过滤 -->
  492. <filtering>false</filtering>
  493. </resource>
  494. <resource>
  495. <directory>src/main/resources</directory>
  496. <!-- 引入所有 匹配文件进行过滤 -->
  497. <includes>
  498. <include>application*</include>
  499. <include>bootstrap*</include>
  500. <include>banner*</include>
  501. </includes>
  502. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  503. <filtering>true</filtering>
  504. </resource>
  505. </resources>
  506. </build>
  507. <repositories>
  508. <repository>
  509. <id>public</id>
  510. <name>huawei nexus</name>
  511. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  512. <releases>
  513. <enabled>true</enabled>
  514. </releases>
  515. </repository>
  516. </repositories>
  517. <pluginRepositories>
  518. <pluginRepository>
  519. <id>public</id>
  520. <name>huawei nexus</name>
  521. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  522. <releases>
  523. <enabled>true</enabled>
  524. </releases>
  525. <snapshots>
  526. <enabled>false</enabled>
  527. </snapshots>
  528. </pluginRepository>
  529. </pluginRepositories>
  530. </project>