pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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. </dependencies>
  241. </dependencyManagement>
  242. <modules>
  243. <module>ruoyi</module>
  244. <module>ruoyi-extend</module>
  245. </modules>
  246. <packaging>pom</packaging>
  247. <build>
  248. <plugins>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-compiler-plugin</artifactId>
  252. <version>3.9.0</version>
  253. <configuration>
  254. <source>${java.version}</source>
  255. <target>${java.version}</target>
  256. <encoding>${project.build.sourceEncoding}</encoding>
  257. <annotationProcessorPaths>
  258. <path>
  259. <groupId>com.github.therapi</groupId>
  260. <artifactId>therapi-runtime-javadoc-scribe</artifactId>
  261. <version>0.15.0</version>
  262. </path>
  263. <path>
  264. <groupId>org.projectlombok</groupId>
  265. <artifactId>lombok</artifactId>
  266. <version>${lombok.version}</version>
  267. </path>
  268. <path>
  269. <groupId>org.springframework.boot</groupId>
  270. <artifactId>spring-boot-configuration-processor</artifactId>
  271. <version>${spring-boot.version}</version>
  272. </path>
  273. </annotationProcessorPaths>
  274. </configuration>
  275. </plugin>
  276. <!-- 单元测试使用 -->
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-surefire-plugin</artifactId>
  280. <version>2.22.2</version>
  281. <configuration>
  282. <argLine>-Dfile.encoding=UTF-8</argLine>
  283. <!-- 根据打包环境执行对应的@Tag测试方法 -->
  284. <groups>${profiles.active}</groups>
  285. <!-- 排除标签 -->
  286. <excludedGroups>exclude</excludedGroups>
  287. </configuration>
  288. </plugin>
  289. </plugins>
  290. <resources>
  291. <resource>
  292. <directory>src/main/resources</directory>
  293. <!-- 关闭过滤 -->
  294. <filtering>false</filtering>
  295. </resource>
  296. <resource>
  297. <directory>src/main/resources</directory>
  298. <!-- 引入所有 匹配文件进行过滤 -->
  299. <includes>
  300. <include>application*</include>
  301. <include>bootstrap*</include>
  302. <include>banner*</include>
  303. </includes>
  304. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  305. <filtering>true</filtering>
  306. </resource>
  307. </resources>
  308. </build>
  309. <repositories>
  310. <repository>
  311. <id>public</id>
  312. <name>huawei nexus</name>
  313. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  314. <releases>
  315. <enabled>true</enabled>
  316. </releases>
  317. </repository>
  318. </repositories>
  319. <pluginRepositories>
  320. <pluginRepository>
  321. <id>public</id>
  322. <name>huawei nexus</name>
  323. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  324. <releases>
  325. <enabled>true</enabled>
  326. </releases>
  327. <snapshots>
  328. <enabled>false</enabled>
  329. </snapshots>
  330. </pluginRepository>
  331. </pluginRepositories>
  332. </project>