pom.xml 20 KB

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