pom.xml 20 KB

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