|
@@ -0,0 +1,371 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+ <!-- Spring Boot 父级依赖 -->
|
|
|
+ <parent>
|
|
|
+ <groupId>cn.sikey.cloud</groupId>
|
|
|
+ <artifactId>sikey-websocket-business</artifactId>
|
|
|
+ <version>2.3.0-SNAPSHOT</version>
|
|
|
+ </parent>
|
|
|
+
|
|
|
+ <artifactId>sikey-websocket-business-biz</artifactId>
|
|
|
+ <version>2.3.0-SNAPSHOT</version>
|
|
|
+ <packaging>jar</packaging>
|
|
|
+
|
|
|
+ <name>${project.artifactId}</name>
|
|
|
+ <description>
|
|
|
+ sikey-websocket-business-biz
|
|
|
+ </description>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <java.version>23</java.version>
|
|
|
+ <maven.compiler.source>${java.version}</maven.compiler.source>
|
|
|
+ <maven.compiler.target>${java.version}</maven.compiler.target>
|
|
|
+ <consul.version>4.2.0</consul.version>
|
|
|
+ <spring.cloud.gateway.version>4.2.0</spring.cloud.gateway.version>
|
|
|
+ <!--<spring.cloud.alibaba.version>2023.0.1.0</spring.cloud.alibaba.version>-->
|
|
|
+ <lombok.version>1.18.36</lombok.version>
|
|
|
+ <logback.version>1.2.12</logback.version>
|
|
|
+ <mapstruct.version>1.6.2</mapstruct.version>
|
|
|
+ <spring.cloud.version>2024.0.0</spring.cloud.version>
|
|
|
+ <spring.boot.version>3.4.0</spring.boot.version>
|
|
|
+ <skywalking.version>9.0.0</skywalking.version>
|
|
|
+ <opentracing.version>0.33.0</opentracing.version>
|
|
|
+ <revision>2.3.0-SNAPSHOT</revision>
|
|
|
+
|
|
|
+ <maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
|
|
|
+ <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
|
|
|
+ <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
|
|
|
+ <okhttp3.version>4.12.0</okhttp3.version>
|
|
|
+ <hutool.version>5.8.28</hutool.version>
|
|
|
+ <google.zxing.version>3.5.2</google.zxing.version>
|
|
|
+ <alipay.v3.version>3.0.0.ALL</alipay.v3.version>
|
|
|
+ <wechat.v3.version>0.2.16</wechat.v3.version>
|
|
|
+ <gson.version>2.11.0</gson.version>
|
|
|
+ <security.version>3.4.4</security.version>
|
|
|
+ <commons-codec.version>1.15</commons-codec.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+
|
|
|
+ <!-- Web 开发基础依赖 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.sikey.cloud</groupId>
|
|
|
+ <artifactId>sikey-spring-boot-starter-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Registry 注册中心相关 -->
|
|
|
+ <!--<dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
+ </dependency>-->
|
|
|
+
|
|
|
+ <!-- Config 配置中心相关 -->
|
|
|
+ <!--<dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
+ </dependency>-->
|
|
|
+
|
|
|
+ <!-- Spring Cloud Consul 配置中心 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-consul-config</artifactId>
|
|
|
+ <version>${consul.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Spring Cloud Consul 服务发现 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-consul-discovery</artifactId>
|
|
|
+ <version>${consul.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.sikey.cloud</groupId>
|
|
|
+ <artifactId>sikey-common</artifactId>
|
|
|
+ <version>2.3.0-SNAPSHOT</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>${lombok.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct</artifactId>
|
|
|
+ <version>${mapstruct.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct-jdk8</artifactId>
|
|
|
+ <version>${mapstruct.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct-processor</artifactId>
|
|
|
+ <version>${mapstruct.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.skywalking</groupId>
|
|
|
+ <artifactId>apm-toolkit-trace</artifactId>
|
|
|
+ <version>${skywalking.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.skywalking</groupId>
|
|
|
+ <artifactId>apm-toolkit-logback-1.x</artifactId>
|
|
|
+ <version>${skywalking.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.skywalking</groupId>
|
|
|
+ <artifactId>apm-toolkit-opentracing</artifactId>
|
|
|
+ <version>${skywalking.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.opentracing</groupId>
|
|
|
+ <artifactId>opentracing-api</artifactId>
|
|
|
+ <version>${opentracing.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.opentracing</groupId>
|
|
|
+ <artifactId>opentracing-util</artifactId>
|
|
|
+ <version>${opentracing.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.opentracing</groupId>
|
|
|
+ <artifactId>opentracing-noop</artifactId>
|
|
|
+ <version>${opentracing.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.squareup.okhttp3</groupId>
|
|
|
+ <artifactId>okhttp</artifactId>
|
|
|
+ <version>${okhttp3.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Hutool 核心库 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
+ <version>${hutool.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
+ <artifactId>hutool-core</artifactId>
|
|
|
+ <version>${hutool.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 显式添加 Gson -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.code.gson</groupId>
|
|
|
+ <artifactId>gson</artifactId>
|
|
|
+ <version>${gson.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--<dependency>
|
|
|
+ <groupId>org.apache.tomcat.embed</groupId>
|
|
|
+ <artifactId>tomcat-embed-core</artifactId>
|
|
|
+ </dependency>-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-codec</groupId>
|
|
|
+ <artifactId>commons-codec</artifactId>
|
|
|
+ <version>${commons-codec.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-core</artifactId>
|
|
|
+ <version>1.5.12</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-classic</artifactId>
|
|
|
+ <version>1.5.12</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-api</artifactId>
|
|
|
+ <version>2.0.16</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- DB 相关 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.sikey.cloud</groupId>
|
|
|
+ <artifactId>sikey-spring-boot-starter-mybatis</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Redis 相关 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.sikey.cloud</groupId>
|
|
|
+ <artifactId>sikey-spring-boot-starter-redis</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Spring Boot AMQP Starter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-amqp</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Spring Boot WebSocket Starter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-websocket</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
+ <version>33.3.1-jre</version>
|
|
|
+ <scope>compile</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- RPC 远程调用相关 -->
|
|
|
+ <!--<dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
|
+ <version>4.1.1</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-openfeign</artifactId>
|
|
|
+ <version>4.1.1</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.github.openfeign</groupId>
|
|
|
+ <artifactId>feign-okhttp</artifactId>
|
|
|
+ <version>12.5</version>
|
|
|
+ </dependency>-->
|
|
|
+
|
|
|
+ <!--<dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
+ <version>3.4.4</version>
|
|
|
+ </dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+ <!--<dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-security</artifactId>
|
|
|
+ <version>${security.version}</version>
|
|
|
+ </dependency>-->
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <repositories>
|
|
|
+ <!--<repository>
|
|
|
+ <id>nexus-snapshots</id> <!– 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 –>
|
|
|
+ <url>http://106.75.230.4:18081/repository/maven-public/</url>
|
|
|
+ </repository>
|
|
|
+ <repository>
|
|
|
+ <id>nexus-releases</id> <!– 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 –>
|
|
|
+ <url>http://106.75.230.4:18081/repository/maven-public/</url>
|
|
|
+ </repository>-->
|
|
|
+
|
|
|
+ <!--<repository>
|
|
|
+ <id>sikey-group</id>
|
|
|
+ <url>http://106.75.230.4:18081/repository/sikey-group/</url>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </snapshots>
|
|
|
+ <releases>
|
|
|
+ <enabled>true</enabled>
|
|
|
+ </releases>
|
|
|
+ </repository>-->
|
|
|
+
|
|
|
+ </repositories>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <!-- 设置构建的 jar 包名 -->
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
|
|
|
+ <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <version>${maven-surefire-plugin.version}</version>
|
|
|
+ </plugin>
|
|
|
+ <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
|
|
|
+ <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>${maven-compiler-plugin.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <annotationProcessorPaths>
|
|
|
+ <path>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
+ <version>${spring.boot.version}</version>
|
|
|
+ </path>
|
|
|
+ <path>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>${lombok.version}</version>
|
|
|
+ </path>
|
|
|
+ <path>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct-processor</artifactId>
|
|
|
+ <version>${mapstruct.version}</version>
|
|
|
+ </path>
|
|
|
+ </annotationProcessorPaths>
|
|
|
+ <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
|
|
|
+ <debug>false</debug>
|
|
|
+ <compilerArgs>
|
|
|
+ <arg>-parameters</arg>
|
|
|
+ </compilerArgs>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
+
|
|
|
+ <plugins>
|
|
|
+ <!-- 统一 revision 版本 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>flatten-maven-plugin</artifactId>
|
|
|
+ <version>${flatten-maven-plugin.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <flattenMode>oss</flattenMode>
|
|
|
+ <updatePomFile>true</updatePomFile>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>flatten</goal>
|
|
|
+ </goals>
|
|
|
+ <id>flatten</id>
|
|
|
+ <phase>process-resources</phase>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>clean</goal>
|
|
|
+ </goals>
|
|
|
+ <id>flatten.clean</id>
|
|
|
+ <phase>clean</phase>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <!-- 关键:添加 spring-boot-maven-plugin -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>${spring.boot.version}</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+</project>
|