pom.xml 20 KB

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