pom.xml 18 KB

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