pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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>cn.iocoder.boot</groupId>
  7. <artifactId>yudao-dependencies</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <name>${artifactId}</name>
  11. <description>基础 bom 文件,管理整个项目的依赖版本</description>
  12. <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
  13. <properties>
  14. <revision>1.0.0</revision>
  15. <!-- 统一依赖管理 -->
  16. <spring.boot.version>2.4.4</spring.boot.version>
  17. <!-- Web 相关 -->
  18. <knife4j.version>3.0.2</knife4j.version>
  19. <swagger-annotations.version>1.5.22</swagger-annotations.version>
  20. <!-- DB 相关 -->
  21. <mysql-connector-java.version>5.1.46</mysql-connector-java.version>
  22. <druid.version>1.2.4</druid.version>
  23. <mybatis-plus.version>3.4.2</mybatis-plus.version>
  24. <dynamic-datasource.version>3.3.2</dynamic-datasource.version>
  25. <redisson.version>3.15.1</redisson.version>
  26. <!-- Config 配置中心相关 -->
  27. <apollo.version>1.7.0</apollo.version>
  28. <!-- Job 定时任务相关 -->
  29. <!-- 服务保障相关 -->
  30. <lock4j.version>2.2.0</lock4j.version>
  31. <resilience4j.version>1.7.0</resilience4j.version>
  32. <!-- 监控相关 -->
  33. <skywalking.version>8.5.0</skywalking.version>
  34. <spring-boot-admin.version>2.3.1</spring-boot-admin.version>
  35. <!-- Test 测试相关 -->
  36. <podam.version>7.2.6.RELEASE</podam.version>
  37. <jedis-mock.version>0.1.16</jedis-mock.version>
  38. <!-- 工具类相关 -->
  39. <lombok.version>1.16.14</lombok.version>
  40. <mapstruct.version>1.4.1.Final</mapstruct.version>
  41. <hutool.version>5.6.1</hutool.version>
  42. <easyexcel.verion>2.2.7</easyexcel.verion>
  43. <velocity.version>2.2</velocity.version>
  44. <screw.version>1.0.5</screw.version>
  45. <!-- 三方云服务相关 -->
  46. <aliyun-java-sdk-core.version>4.5.18</aliyun-java-sdk-core.version>
  47. <aliyun-java-sdk-dysmsapi.version>2.1.0</aliyun-java-sdk-dysmsapi.version>
  48. <yunpian-java-sdk.version>1.2.7</yunpian-java-sdk.version>
  49. <!-- Maven 插件 -->
  50. <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
  51. </properties>
  52. <dependencyManagement>
  53. <dependencies>
  54. <!-- 统一依赖管理 -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-dependencies</artifactId>
  58. <version>${spring.boot.version}</version>
  59. <type>pom</type>
  60. <scope>import</scope>
  61. <exclusions>
  62. <exclusion>
  63. <groupId>mysql</groupId>
  64. <artifactId>mysql-connector-java</artifactId>
  65. </exclusion>
  66. </exclusions>
  67. </dependency>
  68. <!-- Spring 核心 -->
  69. <dependency>
  70. <!-- 用于生成自定义的 Spring @ConfigurationProperties 配置类的说明文件 -->
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-configuration-processor</artifactId>
  73. <version>${spring.boot.version}</version>
  74. </dependency>
  75. <!-- Web 相关 -->
  76. <dependency>
  77. <groupId>com.github.xiaoymin</groupId>
  78. <artifactId>knife4j-spring-boot-starter</artifactId>
  79. <version>${knife4j.version}</version>
  80. <exclusions>
  81. <exclusion>
  82. <artifactId>mapstruct</artifactId>
  83. <groupId>org.mapstruct</groupId> <!-- 避免冲突 -->
  84. </exclusion>
  85. <exclusion>
  86. <artifactId>guava</artifactId>
  87. <groupId>com.google.guava</groupId>
  88. </exclusion>
  89. <exclusion>
  90. <artifactId>swagger-annotations</artifactId>
  91. <groupId>io.swagger</groupId>
  92. </exclusion>
  93. </exclusions>
  94. </dependency>
  95. <dependency>
  96. <groupId>io.swagger</groupId>
  97. <artifactId>swagger-annotations</artifactId>
  98. <version>${swagger-annotations.version}</version>
  99. </dependency>
  100. <!-- DB 相关 -->
  101. <dependency>
  102. <groupId>mysql</groupId>
  103. <artifactId>mysql-connector-java</artifactId>
  104. <version>${mysql-connector-java.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.alibaba</groupId>
  108. <artifactId>druid-spring-boot-starter</artifactId>
  109. <version>${druid.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.baomidou</groupId>
  113. <artifactId>mybatis-plus-boot-starter</artifactId>
  114. <version>${mybatis-plus.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.baomidou</groupId>
  118. <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <!-- 多数据源 -->
  119. <version>${dynamic-datasource.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.redisson</groupId>
  123. <artifactId>redisson-spring-boot-starter</artifactId>
  124. <version>${redisson.version}</version>
  125. </dependency>
  126. <!-- Config 配置中心相关 -->
  127. <dependency>
  128. <groupId>com.ctrip.framework.apollo</groupId>
  129. <artifactId>apollo-client</artifactId> <!-- 引入 Apollo Client 库,实现内嵌的配置中心 -->
  130. <version>${apollo.version}</version>
  131. </dependency>
  132. <!-- Job 定时任务相关 -->
  133. <!-- 服务保障相关 -->
  134. <dependency>
  135. <groupId>com.baomidou</groupId>
  136. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  137. <version>${lock4j.version}</version>
  138. <exclusions>
  139. <exclusion>
  140. <artifactId>redisson-spring-boot-starter</artifactId>
  141. <groupId>org.redisson</groupId>
  142. </exclusion>
  143. </exclusions>
  144. </dependency>
  145. <dependency>
  146. <groupId>io.github.resilience4j</groupId>
  147. <artifactId>resilience4j-spring-boot2</artifactId>
  148. <version>${resilience4j.version}</version>
  149. </dependency>
  150. <!-- 监控相关 -->
  151. <dependency>
  152. <groupId>org.apache.skywalking</groupId>
  153. <artifactId>apm-toolkit-trace</artifactId>
  154. <version>${skywalking.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.skywalking</groupId>
  158. <artifactId>apm-toolkit-logback-1.x</artifactId>
  159. <version>${skywalking.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.skywalking</groupId>
  163. <artifactId>apm-toolkit-opentracing</artifactId>
  164. <version>${skywalking.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>de.codecentric</groupId>
  168. <artifactId>spring-boot-admin-starter-server</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 -->
  169. <version>${spring-boot-admin.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>de.codecentric</groupId>
  173. <artifactId>spring-boot-admin-starter-client</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 -->
  174. <version>${spring-boot-admin.version}</version>
  175. </dependency>
  176. <!-- Test 测试相关 -->
  177. <dependency>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-starter-test</artifactId>
  180. <version>${spring.boot.version}</version>
  181. <exclusions>
  182. <exclusion>
  183. <artifactId>asm</artifactId>
  184. <groupId>org.ow2.asm</groupId>
  185. </exclusion>
  186. </exclusions>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.github.fppt</groupId> <!-- 单元测试,我们采用内嵌的 Redis 数据库 -->
  190. <artifactId>jedis-mock</artifactId>
  191. <version>${jedis-mock.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>uk.co.jemos.podam</groupId> <!-- 单元测试,随机生成 POJO 类 -->
  195. <artifactId>podam</artifactId>
  196. <version>${podam.version}</version>
  197. </dependency>
  198. <!-- 工具类相关 -->
  199. <dependency>
  200. <groupId>org.projectlombok</groupId>
  201. <artifactId>lombok</artifactId>
  202. <version>${lombok.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.mapstruct</groupId>
  206. <artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
  207. <version>${mapstruct.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.mapstruct</groupId>
  211. <artifactId>mapstruct-jdk8</artifactId>
  212. <version>${mapstruct.version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.mapstruct</groupId>
  216. <artifactId>mapstruct-processor</artifactId>
  217. <version>${mapstruct.version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>cn.hutool</groupId>
  221. <artifactId>hutool-all</artifactId>
  222. <version>${hutool.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.alibaba</groupId>
  226. <artifactId>easyexcel</artifactId>
  227. <version>${easyexcel.verion}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.apache.velocity</groupId>
  231. <artifactId>velocity-engine-core</artifactId>
  232. <version>${velocity.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>cn.smallbun.screw</groupId>
  236. <artifactId>screw-core</artifactId> <!-- 实现数据库文档 -->
  237. <version>${screw.version}</version>
  238. </dependency>
  239. <!-- 三方云服务相关 -->
  240. <!-- SMS SDK begin -->
  241. <dependency>
  242. <groupId>com.yunpian.sdk</groupId>
  243. <artifactId>yunpian-java-sdk</artifactId>
  244. <version>${yunpian-java-sdk.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.aliyun</groupId>
  248. <artifactId>aliyun-java-sdk-core</artifactId>
  249. <version>${aliyun-java-sdk-core.version}</version>
  250. <exclusions>
  251. <exclusion>
  252. <artifactId>opentracing-api</artifactId>
  253. <groupId>io.opentracing</groupId>
  254. </exclusion>
  255. <exclusion>
  256. <artifactId>opentracing-noop</artifactId>
  257. <groupId>io.opentracing</groupId>
  258. </exclusion>
  259. </exclusions>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.aliyun</groupId>
  263. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  264. <version>${aliyun-java-sdk-dysmsapi.version}</version>
  265. </dependency>
  266. <!-- SMS SDK end -->
  267. </dependencies>
  268. </dependencyManagement>
  269. <build>
  270. <pluginManagement>
  271. <plugins>
  272. <plugin>
  273. <groupId>org.apache.maven.plugins</groupId>
  274. <artifactId>maven-surefire-plugin</artifactId>
  275. <version>${maven-surefire-plugin.version}</version>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-failsafe-plugin</artifactId>
  280. <version>${maven-surefire-plugin.version}</version>
  281. </plugin>
  282. </plugins>
  283. </pluginManagement>
  284. </build>
  285. </project>