pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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>4.8.2</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. <ruoyi-vue-plus.version>4.8.2</ruoyi-vue-plus.version>
  14. <spring-boot.version>2.7.18</spring-boot.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <java.version>1.8</java.version>
  18. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  19. <spring-boot.mybatis>2.2.2</spring-boot.mybatis>
  20. <springdoc.version>1.6.15</springdoc.version>
  21. <poi.version>5.2.3</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.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>2.7.11</spring-boot-admin.version>
  30. <redisson.version>3.20.1</redisson.version>
  31. <lock4j.version>2.2.3</lock4j.version>
  32. <dynamic-ds.version>3.5.2</dynamic-ds.version>
  33. <alibaba-ttl.version>2.14.2</alibaba-ttl.version>
  34. <xxl-job.version>2.4.0</xxl-job.version>
  35. <lombok.version>1.18.30</lombok.version>
  36. <bouncycastle.version>1.72</bouncycastle.version>
  37. <!-- 离线IP地址定位库 -->
  38. <ip2region.version>2.7.0</ip2region.version>
  39. <!-- OSS 配置 -->
  40. <aws-java-sdk-s3.version>1.12.540</aws-java-sdk-s3.version>
  41. <!-- SMS 配置 -->
  42. <sms4j.version>2.2.0</sms4j.version>
  43. </properties>
  44. <profiles>
  45. <profile>
  46. <id>local</id>
  47. <properties>
  48. <!-- 环境标识,需要与配置文件的名称相对应 -->
  49. <profiles.active>local</profiles.active>
  50. <logging.level>info</logging.level>
  51. </properties>
  52. </profile>
  53. <profile>
  54. <id>dev</id>
  55. <properties>
  56. <!-- 环境标识,需要与配置文件的名称相对应 -->
  57. <profiles.active>dev</profiles.active>
  58. <logging.level>info</logging.level>
  59. </properties>
  60. <activation>
  61. <!-- 默认环境 -->
  62. <activeByDefault>true</activeByDefault>
  63. </activation>
  64. </profile>
  65. <profile>
  66. <id>prod</id>
  67. <properties>
  68. <profiles.active>prod</profiles.active>
  69. <logging.level>warn</logging.level>
  70. </properties>
  71. </profile>
  72. </profiles>
  73. <!-- 依赖声明 -->
  74. <dependencyManagement>
  75. <dependencies>
  76. <!-- SpringBoot的依赖配置-->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-dependencies</artifactId>
  80. <version>${spring-boot.version}</version>
  81. <type>pom</type>
  82. <scope>import</scope>
  83. </dependency>
  84. <!-- hutool 的依赖配置-->
  85. <dependency>
  86. <groupId>cn.hutool</groupId>
  87. <artifactId>hutool-bom</artifactId>
  88. <version>${hutool.version}</version>
  89. <type>pom</type>
  90. <scope>import</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springdoc</groupId>
  94. <artifactId>springdoc-openapi-webmvc-core</artifactId>
  95. <version>${springdoc.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springdoc</groupId>
  99. <artifactId>springdoc-openapi-javadoc</artifactId>
  100. <version>${springdoc.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.projectlombok</groupId>
  104. <artifactId>lombok</artifactId>
  105. <version>${lombok.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.poi</groupId>
  109. <artifactId>poi</artifactId>
  110. <version>${poi.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.apache.poi</groupId>
  114. <artifactId>poi-ooxml</artifactId>
  115. <version>${poi.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.alibaba</groupId>
  119. <artifactId>easyexcel</artifactId>
  120. <version>${easyexcel.version}</version>
  121. <exclusions>
  122. <exclusion>
  123. <groupId>org.apache.poi</groupId>
  124. <artifactId>poi-ooxml-schemas</artifactId>
  125. </exclusion>
  126. </exclusions>
  127. </dependency>
  128. <!-- velocity代码生成使用模板 -->
  129. <dependency>
  130. <groupId>org.apache.velocity</groupId>
  131. <artifactId>velocity-engine-core</artifactId>
  132. <version>${velocity.version}</version>
  133. </dependency>
  134. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  135. <dependency>
  136. <groupId>cn.dev33</groupId>
  137. <artifactId>sa-token-spring-boot-starter</artifactId>
  138. <version>${satoken.version}</version>
  139. </dependency>
  140. <!-- Sa-Token 整合 jwt -->
  141. <dependency>
  142. <groupId>cn.dev33</groupId>
  143. <artifactId>sa-token-jwt</artifactId>
  144. <version>${satoken.version}</version>
  145. <exclusions>
  146. <exclusion>
  147. <groupId>cn.hutool</groupId>
  148. <artifactId>hutool-all</artifactId>
  149. </exclusion>
  150. </exclusions>
  151. </dependency>
  152. <!-- dynamic-datasource 多数据源-->
  153. <dependency>
  154. <groupId>com.baomidou</groupId>
  155. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  156. <version>${dynamic-ds.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.baomidou</groupId>
  160. <artifactId>mybatis-plus-boot-starter</artifactId>
  161. <version>${mybatis-plus.version}</version>
  162. </dependency>
  163. <!-- sql性能分析插件 -->
  164. <dependency>
  165. <groupId>p6spy</groupId>
  166. <artifactId>p6spy</artifactId>
  167. <version>${p6spy.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.squareup.okhttp3</groupId>
  171. <artifactId>okhttp</artifactId>
  172. <version>${okhttp.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.amazonaws</groupId>
  176. <artifactId>aws-java-sdk-s3</artifactId>
  177. <version>${aws-java-sdk-s3.version}</version>
  178. </dependency>
  179. <!--短信sms4j-->
  180. <dependency>
  181. <groupId>org.dromara.sms4j</groupId>
  182. <artifactId>sms4j-spring-boot-starter</artifactId>
  183. <version>${sms4j.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>de.codecentric</groupId>
  187. <artifactId>spring-boot-admin-starter-server</artifactId>
  188. <version>${spring-boot-admin.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>de.codecentric</groupId>
  192. <artifactId>spring-boot-admin-starter-client</artifactId>
  193. <version>${spring-boot-admin.version}</version>
  194. </dependency>
  195. <!--redisson-->
  196. <dependency>
  197. <groupId>org.redisson</groupId>
  198. <artifactId>redisson-spring-boot-starter</artifactId>
  199. <version>${redisson.version}</version>
  200. <exclusions>
  201. <exclusion>
  202. <groupId>org.redisson</groupId>
  203. <artifactId>redisson-spring-data-30</artifactId>
  204. </exclusion>
  205. </exclusions>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.redisson</groupId>
  209. <artifactId>redisson-spring-data-27</artifactId>
  210. <version>${redisson.version}</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>com.baomidou</groupId>
  214. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  215. <version>${lock4j.version}</version>
  216. </dependency>
  217. <!-- xxl-job-core -->
  218. <dependency>
  219. <groupId>com.xuxueli</groupId>
  220. <artifactId>xxl-job-core</artifactId>
  221. <version>${xxl-job.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.alibaba</groupId>
  225. <artifactId>transmittable-thread-local</artifactId>
  226. <version>${alibaba-ttl.version}</version>
  227. </dependency>
  228. <!-- 离线IP地址定位库 ip2region -->
  229. <dependency>
  230. <groupId>org.lionsoul</groupId>
  231. <artifactId>ip2region</artifactId>
  232. <version>${ip2region.version}</version>
  233. </dependency>
  234. <!-- 加密包引入 -->
  235. <dependency>
  236. <groupId>org.bouncycastle</groupId>
  237. <artifactId>bcprov-jdk15to18</artifactId>
  238. <version>${bouncycastle.version}</version>
  239. </dependency>
  240. <!-- 定时任务 -->
  241. <dependency>
  242. <groupId>com.ruoyi</groupId>
  243. <artifactId>ruoyi-job</artifactId>
  244. <version>${ruoyi-vue-plus.version}</version>
  245. </dependency>
  246. <!-- 代码生成-->
  247. <dependency>
  248. <groupId>com.ruoyi</groupId>
  249. <artifactId>ruoyi-generator</artifactId>
  250. <version>${ruoyi-vue-plus.version}</version>
  251. </dependency>
  252. <!-- 核心模块-->
  253. <dependency>
  254. <groupId>com.ruoyi</groupId>
  255. <artifactId>ruoyi-framework</artifactId>
  256. <version>${ruoyi-vue-plus.version}</version>
  257. </dependency>
  258. <!-- 系统模块-->
  259. <dependency>
  260. <groupId>com.ruoyi</groupId>
  261. <artifactId>ruoyi-system</artifactId>
  262. <version>${ruoyi-vue-plus.version}</version>
  263. </dependency>
  264. <!-- 通用工具-->
  265. <dependency>
  266. <groupId>com.ruoyi</groupId>
  267. <artifactId>ruoyi-common</artifactId>
  268. <version>${ruoyi-vue-plus.version}</version>
  269. </dependency>
  270. <!-- OSS对象存储模块 -->
  271. <dependency>
  272. <groupId>com.ruoyi</groupId>
  273. <artifactId>ruoyi-oss</artifactId>
  274. <version>${ruoyi-vue-plus.version}</version>
  275. </dependency>
  276. <!-- SMS短信模块 -->
  277. <dependency>
  278. <groupId>com.ruoyi</groupId>
  279. <artifactId>ruoyi-sms</artifactId>
  280. <version>${ruoyi-vue-plus.version}</version>
  281. </dependency>
  282. <!-- demo模块 -->
  283. <dependency>
  284. <groupId>com.ruoyi</groupId>
  285. <artifactId>ruoyi-demo</artifactId>
  286. <version>${ruoyi-vue-plus.version}</version>
  287. </dependency>
  288. </dependencies>
  289. </dependencyManagement>
  290. <modules>
  291. <module>ruoyi-admin</module>
  292. <module>ruoyi-framework</module>
  293. <module>ruoyi-system</module>
  294. <module>ruoyi-job</module>
  295. <module>ruoyi-generator</module>
  296. <module>ruoyi-common</module>
  297. <module>ruoyi-demo</module>
  298. <module>ruoyi-extend</module>
  299. <module>ruoyi-oss</module>
  300. <module>ruoyi-sms</module>
  301. </modules>
  302. <packaging>pom</packaging>
  303. <build>
  304. <plugins>
  305. <plugin>
  306. <groupId>org.apache.maven.plugins</groupId>
  307. <artifactId>maven-compiler-plugin</artifactId>
  308. <version>3.9.0</version>
  309. <configuration>
  310. <source>${java.version}</source>
  311. <target>${java.version}</target>
  312. <encoding>${project.build.sourceEncoding}</encoding>
  313. <annotationProcessorPaths>
  314. <path>
  315. <groupId>com.github.therapi</groupId>
  316. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  317. <version>0.15.0</version>
  318. </path>
  319. <path>
  320. <groupId>org.projectlombok</groupId>
  321. <artifactId>lombok</artifactId>
  322. <version>${lombok.version}</version>
  323. </path>
  324. <path>
  325. <groupId>org.springframework.boot</groupId>
  326. <artifactId>spring-boot-configuration-processor</artifactId>
  327. <version>${spring-boot.version}</version>
  328. </path>
  329. </annotationProcessorPaths>
  330. </configuration>
  331. </plugin>
  332. <!-- 单元测试使用 -->
  333. <plugin>
  334. <groupId>org.apache.maven.plugins</groupId>
  335. <artifactId>maven-surefire-plugin</artifactId>
  336. <version>2.22.2</version>
  337. <configuration>
  338. <argLine>-Dfile.encoding=UTF-8</argLine>
  339. <!-- 根据打包环境执行对应的@Tag测试方法 -->
  340. <groups>${profiles.active}</groups>
  341. <!-- 排除标签 -->
  342. <excludedGroups>exclude</excludedGroups>
  343. </configuration>
  344. </plugin>
  345. </plugins>
  346. <resources>
  347. <resource>
  348. <directory>src/main/resources</directory>
  349. <!-- 关闭过滤 -->
  350. <filtering>false</filtering>
  351. </resource>
  352. <resource>
  353. <directory>src/main/resources</directory>
  354. <!-- 引入所有 匹配文件进行过滤 -->
  355. <includes>
  356. <include>application*</include>
  357. <include>bootstrap*</include>
  358. <include>banner*</include>
  359. </includes>
  360. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  361. <filtering>true</filtering>
  362. </resource>
  363. </resources>
  364. </build>
  365. <repositories>
  366. <repository>
  367. <id>public</id>
  368. <name>huawei nexus</name>
  369. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  370. <releases>
  371. <enabled>true</enabled>
  372. </releases>
  373. </repository>
  374. </repositories>
  375. <pluginRepositories>
  376. <pluginRepository>
  377. <id>public</id>
  378. <name>huawei nexus</name>
  379. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  380. <releases>
  381. <enabled>true</enabled>
  382. </releases>
  383. <snapshots>
  384. <enabled>false</enabled>
  385. </snapshots>
  386. </pluginRepository>
  387. </pluginRepositories>
  388. </project>