pom.xml 19 KB

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