pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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. <!-- Spring Boot 父级依赖 -->
  7. <parent>
  8. <groupId>cn.sikey.cloud</groupId>
  9. <artifactId>sikey-websocket-business</artifactId>
  10. <version>2.3.0-SNAPSHOT</version>
  11. </parent>
  12. <artifactId>sikey-websocket-business-biz</artifactId>
  13. <version>2.3.0-SNAPSHOT</version>
  14. <packaging>jar</packaging>
  15. <name>${project.artifactId}</name>
  16. <description>
  17. sikey-websocket-business-biz
  18. </description>
  19. <properties>
  20. <java.version>23</java.version>
  21. <maven.compiler.source>${java.version}</maven.compiler.source>
  22. <maven.compiler.target>${java.version}</maven.compiler.target>
  23. <consul.version>4.2.0</consul.version>
  24. <spring.cloud.gateway.version>4.2.0</spring.cloud.gateway.version>
  25. <!--<spring.cloud.alibaba.version>2023.0.1.0</spring.cloud.alibaba.version>-->
  26. <lombok.version>1.18.36</lombok.version>
  27. <logback.version>1.2.12</logback.version>
  28. <mapstruct.version>1.6.2</mapstruct.version>
  29. <spring.cloud.version>2024.0.0</spring.cloud.version>
  30. <spring.boot.version>3.4.0</spring.boot.version>
  31. <skywalking.version>9.0.0</skywalking.version>
  32. <opentracing.version>0.33.0</opentracing.version>
  33. <revision>2.3.0-SNAPSHOT</revision>
  34. <maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
  35. <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
  36. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  37. <okhttp3.version>4.12.0</okhttp3.version>
  38. <hutool.version>5.8.28</hutool.version>
  39. <google.zxing.version>3.5.2</google.zxing.version>
  40. <alipay.v3.version>3.0.0.ALL</alipay.v3.version>
  41. <wechat.v3.version>0.2.16</wechat.v3.version>
  42. <gson.version>2.11.0</gson.version>
  43. <security.version>3.4.4</security.version>
  44. <commons-codec.version>1.15</commons-codec.version>
  45. </properties>
  46. <dependencies>
  47. <!-- Web 开发基础依赖 -->
  48. <dependency>
  49. <groupId>cn.sikey.cloud</groupId>
  50. <artifactId>sikey-spring-boot-starter-web</artifactId>
  51. </dependency>
  52. <!-- Registry 注册中心相关 -->
  53. <!--<dependency>
  54. <groupId>com.alibaba.cloud</groupId>
  55. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  56. </dependency>-->
  57. <!-- Config 配置中心相关 -->
  58. <!--<dependency>
  59. <groupId>com.alibaba.cloud</groupId>
  60. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  61. </dependency>-->
  62. <!-- Spring Cloud Consul 配置中心 -->
  63. <dependency>
  64. <groupId>org.springframework.cloud</groupId>
  65. <artifactId>spring-cloud-starter-consul-config</artifactId>
  66. <version>${consul.version}</version>
  67. </dependency>
  68. <!-- Spring Cloud Consul 服务发现 -->
  69. <dependency>
  70. <groupId>org.springframework.cloud</groupId>
  71. <artifactId>spring-cloud-starter-consul-discovery</artifactId>
  72. <version>${consul.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>cn.sikey.cloud</groupId>
  76. <artifactId>sikey-common</artifactId>
  77. <version>2.3.0-SNAPSHOT</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.projectlombok</groupId>
  81. <artifactId>lombok</artifactId>
  82. <version>${lombok.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.mapstruct</groupId>
  86. <artifactId>mapstruct</artifactId>
  87. <version>${mapstruct.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.mapstruct</groupId>
  91. <artifactId>mapstruct-jdk8</artifactId>
  92. <version>${mapstruct.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.mapstruct</groupId>
  96. <artifactId>mapstruct-processor</artifactId>
  97. <version>${mapstruct.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.skywalking</groupId>
  101. <artifactId>apm-toolkit-trace</artifactId>
  102. <version>${skywalking.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.skywalking</groupId>
  106. <artifactId>apm-toolkit-logback-1.x</artifactId>
  107. <version>${skywalking.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.apache.skywalking</groupId>
  111. <artifactId>apm-toolkit-opentracing</artifactId>
  112. <version>${skywalking.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>io.opentracing</groupId>
  116. <artifactId>opentracing-api</artifactId>
  117. <version>${opentracing.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>io.opentracing</groupId>
  121. <artifactId>opentracing-util</artifactId>
  122. <version>${opentracing.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>io.opentracing</groupId>
  126. <artifactId>opentracing-noop</artifactId>
  127. <version>${opentracing.version}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.squareup.okhttp3</groupId>
  131. <artifactId>okhttp</artifactId>
  132. <version>${okhttp3.version}</version>
  133. </dependency>
  134. <!-- Hutool 核心库 -->
  135. <dependency>
  136. <groupId>cn.hutool</groupId>
  137. <artifactId>hutool-all</artifactId>
  138. <version>${hutool.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>cn.hutool</groupId>
  142. <artifactId>hutool-core</artifactId>
  143. <version>${hutool.version}</version>
  144. </dependency>
  145. <!-- 显式添加 Gson -->
  146. <dependency>
  147. <groupId>com.google.code.gson</groupId>
  148. <artifactId>gson</artifactId>
  149. <version>${gson.version}</version>
  150. </dependency>
  151. <!--<dependency>
  152. <groupId>org.apache.tomcat.embed</groupId>
  153. <artifactId>tomcat-embed-core</artifactId>
  154. </dependency>-->
  155. <dependency>
  156. <groupId>commons-codec</groupId>
  157. <artifactId>commons-codec</artifactId>
  158. <version>${commons-codec.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>ch.qos.logback</groupId>
  162. <artifactId>logback-core</artifactId>
  163. <version>1.5.12</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>ch.qos.logback</groupId>
  167. <artifactId>logback-classic</artifactId>
  168. <version>1.5.12</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.slf4j</groupId>
  172. <artifactId>slf4j-api</artifactId>
  173. <version>2.0.16</version>
  174. </dependency>
  175. <!-- DB 相关 -->
  176. <dependency>
  177. <groupId>cn.sikey.cloud</groupId>
  178. <artifactId>sikey-spring-boot-starter-mybatis</artifactId>
  179. </dependency>
  180. <!-- Redis 相关 -->
  181. <dependency>
  182. <groupId>cn.sikey.cloud</groupId>
  183. <artifactId>sikey-spring-boot-starter-redis</artifactId>
  184. </dependency>
  185. <!-- Spring Boot AMQP Starter -->
  186. <dependency>
  187. <groupId>org.springframework.boot</groupId>
  188. <artifactId>spring-boot-starter-amqp</artifactId>
  189. </dependency>
  190. <!-- Spring Boot WebSocket Starter -->
  191. <dependency>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-starter-websocket</artifactId>
  194. </dependency>
  195. <dependency>
  196. <groupId>com.google.guava</groupId>
  197. <artifactId>guava</artifactId>
  198. <version>33.3.1-jre</version>
  199. <scope>compile</scope>
  200. </dependency>
  201. <!-- RPC 远程调用相关 -->
  202. <!--<dependency>
  203. <groupId>org.springframework.cloud</groupId>
  204. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  205. <version>4.1.1</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.springframework.cloud</groupId>
  209. <artifactId>spring-cloud-starter-openfeign</artifactId>
  210. <version>4.1.1</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>io.github.openfeign</groupId>
  214. <artifactId>feign-okhttp</artifactId>
  215. <version>12.5</version>
  216. </dependency>-->
  217. <!--<dependency>
  218. <groupId>org.springframework.boot</groupId>
  219. <artifactId>spring-boot-starter-data-jpa</artifactId>
  220. <version>3.4.4</version>
  221. </dependency>-->
  222. <!--<dependency>
  223. <groupId>org.springframework.boot</groupId>
  224. <artifactId>spring-boot-starter-security</artifactId>
  225. <version>${security.version}</version>
  226. </dependency>-->
  227. </dependencies>
  228. <repositories>
  229. <!--<repository>
  230. <id>nexus-snapshots</id> &lt;!&ndash; 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 &ndash;&gt;
  231. <url>http://106.75.230.4:18081/repository/maven-public/</url>
  232. </repository>
  233. <repository>
  234. <id>nexus-releases</id> &lt;!&ndash; 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 &ndash;&gt;
  235. <url>http://106.75.230.4:18081/repository/maven-public/</url>
  236. </repository>-->
  237. <!--<repository>
  238. <id>sikey-group</id>
  239. <url>http://106.75.230.4:18081/repository/sikey-group/</url>
  240. <snapshots>
  241. <enabled>true</enabled>
  242. </snapshots>
  243. <releases>
  244. <enabled>true</enabled>
  245. </releases>
  246. </repository>-->
  247. </repositories>
  248. <build>
  249. <!-- 设置构建的 jar 包名 -->
  250. <finalName>${project.artifactId}</finalName>
  251. <pluginManagement>
  252. <plugins>
  253. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  254. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-surefire-plugin</artifactId>
  258. <version>${maven-surefire-plugin.version}</version>
  259. </plugin>
  260. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  261. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  262. <plugin>
  263. <groupId>org.apache.maven.plugins</groupId>
  264. <artifactId>maven-compiler-plugin</artifactId>
  265. <version>${maven-compiler-plugin.version}</version>
  266. <configuration>
  267. <annotationProcessorPaths>
  268. <path>
  269. <groupId>org.springframework.boot</groupId>
  270. <artifactId>spring-boot-configuration-processor</artifactId>
  271. <version>${spring.boot.version}</version>
  272. </path>
  273. <path>
  274. <groupId>org.projectlombok</groupId>
  275. <artifactId>lombok</artifactId>
  276. <version>${lombok.version}</version>
  277. </path>
  278. <path>
  279. <groupId>org.mapstruct</groupId>
  280. <artifactId>mapstruct-processor</artifactId>
  281. <version>${mapstruct.version}</version>
  282. </path>
  283. </annotationProcessorPaths>
  284. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  285. <debug>false</debug>
  286. <compilerArgs>
  287. <arg>-parameters</arg>
  288. </compilerArgs>
  289. </configuration>
  290. </plugin>
  291. </plugins>
  292. </pluginManagement>
  293. <plugins>
  294. <!-- 统一 revision 版本 -->
  295. <plugin>
  296. <groupId>org.codehaus.mojo</groupId>
  297. <artifactId>flatten-maven-plugin</artifactId>
  298. <version>${flatten-maven-plugin.version}</version>
  299. <configuration>
  300. <flattenMode>oss</flattenMode>
  301. <updatePomFile>true</updatePomFile>
  302. </configuration>
  303. <executions>
  304. <execution>
  305. <goals>
  306. <goal>flatten</goal>
  307. </goals>
  308. <id>flatten</id>
  309. <phase>process-resources</phase>
  310. </execution>
  311. <execution>
  312. <goals>
  313. <goal>clean</goal>
  314. </goals>
  315. <id>flatten.clean</id>
  316. <phase>clean</phase>
  317. </execution>
  318. </executions>
  319. </plugin>
  320. <!-- 关键:添加 spring-boot-maven-plugin -->
  321. <plugin>
  322. <groupId>org.springframework.boot</groupId>
  323. <artifactId>spring-boot-maven-plugin</artifactId>
  324. <version>${spring.boot.version}</version>
  325. <executions>
  326. <execution>
  327. <goals>
  328. <goal>repackage</goal>
  329. </goals>
  330. </execution>
  331. </executions>
  332. </plugin>
  333. </plugins>
  334. </build>
  335. </project>