pom.xml 20 KB

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