pom.xml 18 KB

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