pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  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.yushu</groupId>
  7. <artifactId>iot-dependencies</artifactId>
  8. <version>${revision}</version>
  9. <packaging>pom</packaging>
  10. <name>${project.artifactId}</name>
  11. <description>基础 bom 文件,管理整个项目的依赖版本</description>
  12. <properties>
  13. <revision>1.0.0</revision>
  14. <!-- 统一依赖管理 -->
  15. <!-- https://github.com/alibaba/spring-cloud-alibaba/wiki/版本说明-->
  16. <spring-boot.version>2.4.2</spring-boot.version>
  17. <spring-cloud-alibaba.version>2021.1</spring-cloud-alibaba.version>
  18. <spring-cloud.version>2020.0.1</spring-cloud.version>
  19. <!-- Web 相关 -->
  20. <knife4j.version>3.0.2</knife4j.version>
  21. <swagger-annotations.version>1.5.22</swagger-annotations.version>
  22. <servlet.versoin>2.5</servlet.versoin>
  23. <!-- DB 相关 -->
  24. <mysql.version>5.1.46</mysql.version>
  25. <druid.version>1.2.4</druid.version>
  26. <mybatis-plus.version>3.4.2</mybatis-plus.version>
  27. <dynamic-datasource.version>3.3.2</dynamic-datasource.version>
  28. <redisson.version>3.16.3</redisson.version>
  29. <!-- Job 定时任务相关 -->
  30. <!-- 服务保障相关 -->
  31. <lock4j.version>2.2.0</lock4j.version>
  32. <resilience4j.version>1.7.0</resilience4j.version>
  33. <!-- 监控相关 -->
  34. <skywalking.version>8.7.0</skywalking.version>
  35. <spring-boot-admin.version>2.3.1</spring-boot-admin.version>
  36. <opentracing.version>0.31.0</opentracing.version>
  37. <!-- Test 测试相关 -->
  38. <podam.version>7.2.6.RELEASE</podam.version>
  39. <jedis-mock.version>0.1.16</jedis-mock.version>
  40. <!-- 工具类相关 -->
  41. <lombok.version>1.18.12</lombok.version>
  42. <mapstruct.version>1.4.1.Final</mapstruct.version>
  43. <hutool.version>5.6.1</hutool.version>
  44. <fastjson.version>1.2.76</fastjson.version>
  45. <easyexcel.verion>2.2.11</easyexcel.verion>
  46. <velocity.version>2.2</velocity.version>
  47. <screw.version>1.0.5</screw.version>
  48. <guava.version>30.1.1-jre</guava.version>
  49. <commons-io.version>2.6</commons-io.version>
  50. <!-- Maven Plugin Versions -->
  51. <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
  52. <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
  53. <maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
  54. <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
  55. <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
  56. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  57. <flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
  58. <gmavenplus-plugin.version>1.6</gmavenplus-plugin.version>
  59. <jacoco.version>0.8.3</jacoco.version>
  60. </properties>
  61. <dependencyManagement>
  62. <dependencies>
  63. <!-- 统一依赖管理 -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-dependencies</artifactId>
  67. <version>${spring-boot.version}</version>
  68. <type>pom</type>
  69. <scope>import</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.cloud</groupId>
  73. <artifactId>spring-cloud-dependencies</artifactId>
  74. <version>${spring-cloud.version}</version>
  75. <type>pom</type>
  76. <scope>import</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.alibaba.cloud</groupId>
  80. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  81. <version>${spring-cloud-alibaba.version}</version>
  82. <type>pom</type>
  83. <scope>import</scope>
  84. </dependency>
  85. <!-- 业务组件 -->
  86. <!-- Spring 核心 -->
  87. <dependency>
  88. <!-- 用于生成自定义的 Spring @ConfigurationProperties 配置类的说明文件 -->
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-configuration-processor</artifactId>
  91. <version>${spring-boot.version}</version>
  92. </dependency>
  93. <!-- 测试 相关 -->
  94. <dependency>
  95. <groupId>com.yushu</groupId>
  96. <artifactId>iot-spring-boot-starter-test</artifactId>
  97. <version>${revision}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.yushu</groupId>
  101. <artifactId>iot-spring-boot-starter-redis</artifactId>
  102. <version>${revision}</version>
  103. </dependency>
  104. <!-- Web 相关 -->
  105. <dependency>
  106. <groupId>com.yushu</groupId>
  107. <artifactId>iot-spring-boot-starter-web</artifactId>
  108. <version>${revision}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.github.xiaoymin</groupId>
  112. <artifactId>knife4j-spring-boot-starter</artifactId>
  113. <version>${knife4j.version}</version>
  114. <exclusions>
  115. <exclusion>
  116. <artifactId>mapstruct</artifactId>
  117. <groupId>org.mapstruct</groupId> <!-- 避免冲突 -->
  118. </exclusion>
  119. <exclusion>
  120. <artifactId>guava</artifactId>
  121. <groupId>com.google.guava</groupId>
  122. </exclusion>
  123. <exclusion>
  124. <artifactId>swagger-annotations</artifactId>
  125. <groupId>io.swagger</groupId>
  126. </exclusion>
  127. </exclusions>
  128. </dependency>
  129. <dependency>
  130. <groupId>io.swagger</groupId>
  131. <artifactId>swagger-annotations</artifactId>
  132. <version>${swagger-annotations.version}</version>
  133. </dependency>
  134. <!-- DB 相关 -->
  135. <dependency>
  136. <groupId>com.yushu</groupId>
  137. <artifactId>iot-spring-boot-starter-mybatis</artifactId>
  138. <version>${revision}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>mysql</groupId>
  142. <artifactId>mysql-connector-java</artifactId>
  143. <version>${mysql.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.alibaba</groupId>
  147. <artifactId>druid-spring-boot-starter</artifactId>
  148. <version>${druid.version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.baomidou</groupId>
  152. <artifactId>mybatis-plus-boot-starter</artifactId>
  153. <version>${mybatis-plus.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.baomidou</groupId>
  157. <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <!-- 多数据源 -->
  158. <version>${dynamic-datasource.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.redisson</groupId>
  162. <artifactId>redisson-spring-boot-starter</artifactId>
  163. <version>${redisson.version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.baomidou</groupId>
  167. <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
  168. <version>${lock4j.version}</version>
  169. <exclusions>
  170. <exclusion>
  171. <artifactId>redisson-spring-boot-starter</artifactId>
  172. <groupId>org.redisson</groupId>
  173. </exclusion>
  174. </exclusions>
  175. </dependency>
  176. <dependency>
  177. <groupId>io.github.resilience4j</groupId>
  178. <artifactId>resilience4j-ratelimiter</artifactId>
  179. <version>${resilience4j.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>io.github.resilience4j</groupId>
  183. <artifactId>resilience4j-spring-boot2</artifactId>
  184. <version>${resilience4j.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.skywalking</groupId>
  188. <artifactId>apm-toolkit-trace</artifactId>
  189. <version>${skywalking.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.skywalking</groupId>
  193. <artifactId>apm-toolkit-log4j-2.x</artifactId>
  194. <version>${skywalking.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.skywalking</groupId>
  198. <artifactId>apm-toolkit-opentracing</artifactId>
  199. <version>${skywalking.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>io.opentracing</groupId>
  203. <artifactId>opentracing-util</artifactId>
  204. <version>${opentracing.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>de.codecentric</groupId>
  208. <artifactId>spring-boot-admin-starter-server</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 -->
  209. <version>${spring-boot-admin.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>de.codecentric</groupId>
  213. <artifactId>spring-boot-admin-starter-client</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 -->
  214. <version>${spring-boot-admin.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.springframework.boot</groupId>
  218. <artifactId>spring-boot-starter-test</artifactId>
  219. <version>${spring-boot.version}</version>
  220. <exclusions>
  221. <exclusion>
  222. <artifactId>asm</artifactId>
  223. <groupId>org.ow2.asm</groupId>
  224. </exclusion>
  225. </exclusions>
  226. </dependency>
  227. <dependency>
  228. <groupId>com.github.fppt</groupId> <!-- 单元测试,我们采用内嵌的 Redis 数据库 -->
  229. <artifactId>jedis-mock</artifactId>
  230. <version>${jedis-mock.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>uk.co.jemos.podam</groupId> <!-- 单元测试,随机生成 POJO 类 -->
  234. <artifactId>podam</artifactId>
  235. <version>${podam.version}</version>
  236. </dependency>
  237. <!-- 工具类相关 -->
  238. <dependency>
  239. <groupId>com.yushu</groupId>
  240. <artifactId>iot-common</artifactId>
  241. <version>${revision}</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>com.yushu</groupId>
  245. <artifactId>iot-spring-boot-starter-excel</artifactId>
  246. <version>${revision}</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.projectlombok</groupId>
  250. <artifactId>lombok</artifactId>
  251. <version>${lombok.version}</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.mapstruct</groupId>
  255. <artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
  256. <version>${mapstruct.version}</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.mapstruct</groupId>
  260. <artifactId>mapstruct-jdk8</artifactId>
  261. <version>${mapstruct.version}</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.mapstruct</groupId>
  265. <artifactId>mapstruct-processor</artifactId>
  266. <version>${mapstruct.version}</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>cn.hutool</groupId>
  270. <artifactId>hutool-all</artifactId>
  271. <version>${hutool.version}</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>com.alibaba</groupId>
  275. <artifactId>fastjson</artifactId>
  276. <version>${fastjson.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>com.alibaba</groupId>
  280. <artifactId>easyexcel</artifactId>
  281. <version>${easyexcel.verion}</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.apache.velocity</groupId>
  285. <artifactId>velocity-engine-core</artifactId>
  286. <version>${velocity.version}</version>
  287. </dependency>
  288. <!-- 实现数据库文档 -->
  289. <dependency>
  290. <groupId>cn.smallbun.screw</groupId>
  291. <artifactId>screw-core</artifactId>
  292. <version>${screw.version}</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>com.google.guava</groupId>
  296. <artifactId>guava</artifactId>
  297. <version>${guava.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>commons-io</groupId>
  301. <artifactId>commons-io</artifactId>
  302. <version>${commons-io.version}</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>com.alibaba.cloud</groupId>
  306. <artifactId>spring-cloud-starter-stream-rocketmq</artifactId>
  307. <version>${spring-cloud-alibaba.version}</version>
  308. </dependency>
  309. </dependencies>
  310. </dependencyManagement>
  311. </project>