pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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>com.ruoyi</groupId>
  7. <artifactId>ruoyi-vue-plus</artifactId>
  8. <version>${revision}</version>
  9. <name>RuoYi-Vue-Plus</name>
  10. <url>https://gitee.com/JavaLionLi/RuoYi-Vue-Plus</url>
  11. <description>RuoYi-Vue-Plus后台管理系统</description>
  12. <properties>
  13. <revision>5.0.0-SNAPSHOT</revision>
  14. <spring-boot.version>3.0.1</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.0</spring-boot.mybatis>
  19. <springdoc.version>2.0.2</springdoc.version>
  20. <therapi-javadoc.version>0.15.0</therapi-javadoc.version>
  21. <poi.version>5.2.3</poi.version>
  22. <easyexcel.version>3.1.5</easyexcel.version>
  23. <velocity.version>2.3</velocity.version>
  24. <satoken.version>1.34.0</satoken.version>
  25. <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
  26. <p6spy.version>3.9.1</p6spy.version>
  27. <hutool.version>5.8.11</hutool.version>
  28. <okhttp.version>4.10.0</okhttp.version>
  29. <spring-boot-admin.version>3.0.0-M8</spring-boot-admin.version>
  30. <redisson.version>3.19.1</redisson.version>
  31. <lock4j.version>2.2.4</lock4j.version>
  32. <dynamic-ds.version>3.6.1</dynamic-ds.version>
  33. <alibaba-ttl.version>2.14.2</alibaba-ttl.version>
  34. <xxl-job.version>2.3.1</xxl-job.version>
  35. <lombok.version>1.18.24</lombok.version>
  36. <!-- 临时修复 snakeyaml 漏洞 -->
  37. <snakeyaml.version>1.33</snakeyaml.version>
  38. <!-- OSS 配置 -->
  39. <aws-java-sdk-s3.version>1.12.373</aws-java-sdk-s3.version>
  40. <!-- SMS 配置 -->
  41. <aliyun.sms.version>2.0.23</aliyun.sms.version>
  42. <tencent.sms.version>3.1.660</tencent.sms.version>
  43. <!-- 插件版本 -->
  44. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  45. <maven-war-plugin.version>3.2.2</maven-war-plugin.version>
  46. <maven-compiler-plugin.verison>3.10.1</maven-compiler-plugin.verison>
  47. <maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
  48. <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
  49. </properties>
  50. <profiles>
  51. <profile>
  52. <id>local</id>
  53. <properties>
  54. <!-- 环境标识,需要与配置文件的名称相对应 -->
  55. <profiles.active>local</profiles.active>
  56. <logging.level>debug</logging.level>
  57. </properties>
  58. </profile>
  59. <profile>
  60. <id>dev</id>
  61. <properties>
  62. <!-- 环境标识,需要与配置文件的名称相对应 -->
  63. <profiles.active>dev</profiles.active>
  64. <logging.level>debug</logging.level>
  65. </properties>
  66. <activation>
  67. <!-- 默认环境 -->
  68. <activeByDefault>true</activeByDefault>
  69. </activation>
  70. </profile>
  71. <profile>
  72. <id>prod</id>
  73. <properties>
  74. <profiles.active>prod</profiles.active>
  75. <logging.level>warn</logging.level>
  76. </properties>
  77. </profile>
  78. </profiles>
  79. <!-- 依赖声明 -->
  80. <dependencyManagement>
  81. <dependencies>
  82. <!-- SpringBoot的依赖配置-->
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-dependencies</artifactId>
  86. <version>${spring-boot.version}</version>
  87. <type>pom</type>
  88. <scope>import</scope>
  89. </dependency>
  90. <!-- hutool 的依赖配置-->
  91. <dependency>
  92. <groupId>cn.hutool</groupId>
  93. <artifactId>hutool-bom</artifactId>
  94. <version>${hutool.version}</version>
  95. <type>pom</type>
  96. <scope>import</scope>
  97. </dependency>
  98. <!-- common 的依赖配置-->
  99. <dependency>
  100. <groupId>com.ruoyi</groupId>
  101. <artifactId>ruoyi-common-bom</artifactId>
  102. <version>${revision}</version>
  103. <type>pom</type>
  104. <scope>import</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springdoc</groupId>
  108. <artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
  109. <version>${springdoc.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.github.therapi</groupId>
  113. <artifactId>therapi-runtime-javadoc</artifactId>
  114. <version>${therapi-javadoc.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.projectlombok</groupId>
  118. <artifactId>lombok</artifactId>
  119. <version>${lombok.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.poi</groupId>
  123. <artifactId>poi</artifactId>
  124. <version>${poi.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.poi</groupId>
  128. <artifactId>poi-ooxml</artifactId>
  129. <version>${poi.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.alibaba</groupId>
  133. <artifactId>easyexcel</artifactId>
  134. <version>${easyexcel.version}</version>
  135. <exclusions>
  136. <exclusion>
  137. <groupId>org.apache.poi</groupId>
  138. <artifactId>poi-ooxml-schemas</artifactId>
  139. </exclusion>
  140. </exclusions>
  141. </dependency>
  142. <!-- velocity代码生成使用模板 -->
  143. <dependency>
  144. <groupId>org.apache.velocity</groupId>
  145. <artifactId>velocity-engine-core</artifactId>
  146. <version>${velocity.version}</version>
  147. </dependency>
  148. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  149. <dependency>
  150. <groupId>cn.dev33</groupId>
  151. <artifactId>sa-token-spring-boot3-starter</artifactId>
  152. <version>${satoken.version}</version>
  153. </dependency>
  154. <!-- Sa-Token 整合 jwt -->
  155. <dependency>
  156. <groupId>cn.dev33</groupId>
  157. <artifactId>sa-token-jwt</artifactId>
  158. <version>${satoken.version}</version>
  159. <exclusions>
  160. <exclusion>
  161. <groupId>cn.hutool</groupId>
  162. <artifactId>hutool-all</artifactId>
  163. </exclusion>
  164. </exclusions>
  165. </dependency>
  166. <dependency>
  167. <groupId>cn.dev33</groupId>
  168. <artifactId>sa-token-core</artifactId>
  169. <version>${satoken.version}</version>
  170. </dependency>
  171. <!-- dynamic-datasource 多数据源-->
  172. <dependency>
  173. <groupId>com.baomidou</groupId>
  174. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  175. <version>${dynamic-ds.version}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.mybatis.spring.boot</groupId>
  179. <artifactId>mybatis-spring-boot-starter</artifactId>
  180. <version>${spring-boot.mybatis}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>com.baomidou</groupId>
  184. <artifactId>mybatis-plus-boot-starter</artifactId>
  185. <version>${mybatis-plus.version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.baomidou</groupId>
  189. <artifactId>mybatis-plus-annotation</artifactId>
  190. <version>${mybatis-plus.version}</version>
  191. </dependency>
  192. <!-- sql性能分析插件 -->
  193. <dependency>
  194. <groupId>p6spy</groupId>
  195. <artifactId>p6spy</artifactId>
  196. <version>${p6spy.version}</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>com.squareup.okhttp3</groupId>
  200. <artifactId>okhttp</artifactId>
  201. <version>${okhttp.version}</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>com.amazonaws</groupId>
  205. <artifactId>aws-java-sdk-s3</artifactId>
  206. <version>${aws-java-sdk-s3.version}</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>com.aliyun</groupId>
  210. <artifactId>dysmsapi20170525</artifactId>
  211. <version>${aliyun.sms.version}</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.tencentcloudapi</groupId>
  215. <artifactId>tencentcloud-sdk-java-sms</artifactId>
  216. <version>${tencent.sms.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>de.codecentric</groupId>
  220. <artifactId>spring-boot-admin-starter-server</artifactId>
  221. <version>${spring-boot-admin.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>de.codecentric</groupId>
  225. <artifactId>spring-boot-admin-starter-client</artifactId>
  226. <version>${spring-boot-admin.version}</version>
  227. </dependency>
  228. <!--redisson-->
  229. <dependency>
  230. <groupId>org.redisson</groupId>
  231. <artifactId>redisson-spring-boot-starter</artifactId>
  232. <version>${redisson.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>com.baomidou</groupId>
  236. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  237. <version>${lock4j.version}</version>
  238. </dependency>
  239. <!-- xxl-job-core -->
  240. <dependency>
  241. <groupId>com.xuxueli</groupId>
  242. <artifactId>xxl-job-core</artifactId>
  243. <version>${xxl-job.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>com.alibaba</groupId>
  247. <artifactId>transmittable-thread-local</artifactId>
  248. <version>${alibaba-ttl.version}</version>
  249. </dependency>
  250. <!-- 临时修复 snakeyaml 漏洞 -->
  251. <dependency>
  252. <groupId>org.yaml</groupId>
  253. <artifactId>snakeyaml</artifactId>
  254. <version>${snakeyaml.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>com.ruoyi</groupId>
  258. <artifactId>ruoyi-system</artifactId>
  259. <version>${revision}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.ruoyi</groupId>
  263. <artifactId>ruoyi-job</artifactId>
  264. <version>${revision}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>com.ruoyi</groupId>
  268. <artifactId>ruoyi-generator</artifactId>
  269. <version>${revision}</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>com.ruoyi</groupId>
  273. <artifactId>ruoyi-demo</artifactId>
  274. <version>${revision}</version>
  275. </dependency>
  276. </dependencies>
  277. </dependencyManagement>
  278. <modules>
  279. <module>ruoyi-admin</module>
  280. <module>ruoyi-common</module>
  281. <module>ruoyi-extend</module>
  282. <module>ruoyi-modules</module>
  283. </modules>
  284. <packaging>pom</packaging>
  285. <build>
  286. <plugins>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-compiler-plugin</artifactId>
  290. <version>${maven-compiler-plugin.verison}</version>
  291. <configuration>
  292. <source>${java.version}</source>
  293. <target>${java.version}</target>
  294. <encoding>${project.build.sourceEncoding}</encoding>
  295. <annotationProcessorPaths>
  296. <path>
  297. <groupId>com.github.therapi</groupId>
  298. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  299. <version>${therapi-javadoc.version}</version>
  300. </path>
  301. <path>
  302. <groupId>org.projectlombok</groupId>
  303. <artifactId>lombok</artifactId>
  304. <version>${lombok.version}</version>
  305. </path>
  306. <path>
  307. <groupId>org.springframework.boot</groupId>
  308. <artifactId>spring-boot-configuration-processor</artifactId>
  309. <version>${spring-boot.version}</version>
  310. </path>
  311. </annotationProcessorPaths>
  312. </configuration>
  313. </plugin>
  314. <!-- 单元测试使用 -->
  315. <plugin>
  316. <groupId>org.apache.maven.plugins</groupId>
  317. <artifactId>maven-surefire-plugin</artifactId>
  318. <version>${maven-surefire-plugin.version}</version>
  319. <configuration>
  320. <argLine>
  321. -Dfile.encoding=UTF-8
  322. --add-opens java.base/java.lang=ALL-UNNAMED
  323. --add-opens java.base/java.lang.invoke=ALL-UNNAMED
  324. </argLine>
  325. <!-- 根据打包环境执行对应的@Tag测试方法 -->
  326. <groups>${profiles.active}</groups>
  327. <!-- 排除标签 -->
  328. <excludedGroups>exclude</excludedGroups>
  329. </configuration>
  330. </plugin>
  331. <!-- 统一版本号管理 -->
  332. <plugin>
  333. <groupId>org.codehaus.mojo</groupId>
  334. <artifactId>flatten-maven-plugin</artifactId>
  335. <version>${flatten-maven-plugin.version}</version>
  336. <configuration>
  337. <updatePomFile>true</updatePomFile>
  338. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  339. </configuration>
  340. <executions>
  341. <execution>
  342. <id>flatten</id>
  343. <phase>process-resources</phase>
  344. <goals>
  345. <goal>flatten</goal>
  346. </goals>
  347. </execution>
  348. <execution>
  349. <id>flatten.clean</id>
  350. <phase>clean</phase>
  351. <goals>
  352. <goal>clean</goal>
  353. </goals>
  354. </execution>
  355. </executions>
  356. </plugin>
  357. </plugins>
  358. <resources>
  359. <resource>
  360. <directory>src/main/resources</directory>
  361. <!-- 关闭过滤 -->
  362. <filtering>false</filtering>
  363. </resource>
  364. <resource>
  365. <directory>src/main/resources</directory>
  366. <!-- 引入所有 匹配文件进行过滤 -->
  367. <includes>
  368. <include>application*</include>
  369. <include>bootstrap*</include>
  370. <include>banner*</include>
  371. </includes>
  372. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  373. <filtering>true</filtering>
  374. </resource>
  375. </resources>
  376. </build>
  377. <repositories>
  378. <repository>
  379. <id>public</id>
  380. <name>aliyun nexus</name>
  381. <url>https://maven.aliyun.com/repository/public/</url>
  382. <releases>
  383. <enabled>true</enabled>
  384. </releases>
  385. </repository>
  386. </repositories>
  387. <pluginRepositories>
  388. <pluginRepository>
  389. <id>public</id>
  390. <name>aliyun nexus</name>
  391. <url>https://maven.aliyun.com/repository/public/</url>
  392. <releases>
  393. <enabled>true</enabled>
  394. </releases>
  395. <snapshots>
  396. <enabled>false</enabled>
  397. </snapshots>
  398. </pluginRepository>
  399. </pluginRepositories>
  400. </project>