pom.xml 20 KB

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