123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- <?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-pay-business</artifactId>
- <version>2.3.0-SNAPSHOT</version>
- </parent>
- <artifactId>sikey-pay-business-biz</artifactId>
- <version>2.3.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>${project.artifactId}</name>
- <description>
- sikey-pay-biz
- </description>
- <dependencies>
- <!-- 依赖服务 -->
- <dependency>
- <groupId>cn.sikey.cloud</groupId>
- <artifactId>sikey-pay-business-api</artifactId>
- <version>${revision}</version>
- </dependency>
- <dependency>
- <groupId>cn.sikey.cloud</groupId>
- <artifactId>sikey-order-business-api</artifactId>
- <version>${revision}</version>
- </dependency>
- <dependency>
- <groupId>cn.sikey.cloud</groupId>
- <artifactId>sikey-hmd-business-api</artifactId>
- <version>${revision}</version>
- </dependency>
- <!-- Web 开发基础依赖 -->
- <dependency>
- <groupId>cn.sikey.cloud</groupId>
- <artifactId>sikey-spring-boot-starter-web</artifactId>
- </dependency>
- <!-- Spring Cloud Consul 配置中心 -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-consul-config</artifactId>
- </dependency>
- <!-- Spring Cloud Consul 服务发现 -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-consul-discovery</artifactId>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct-jdk8</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct-processor</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.skywalking</groupId>
- <artifactId>apm-toolkit-trace</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.skywalking</groupId>
- <artifactId>apm-toolkit-logback-1.x</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.skywalking</groupId>
- <artifactId>apm-toolkit-opentracing</artifactId>
- </dependency>
- <dependency>
- <groupId>io.opentracing</groupId>
- <artifactId>opentracing-api</artifactId>
- </dependency>
- <dependency>
- <groupId>io.opentracing</groupId>
- <artifactId>opentracing-util</artifactId>
- </dependency>
- <dependency>
- <groupId>io.opentracing</groupId>
- <artifactId>opentracing-noop</artifactId>
- </dependency>
- <dependency>
- <groupId>com.squareup.okhttp3</groupId>
- <artifactId>okhttp</artifactId>
- </dependency>
- <!-- Hutool 核心库 -->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- </dependency>
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-core</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alipay.sdk</groupId>
- <artifactId>alipay-sdk-java-v3</artifactId>
- </dependency>
- <!-- 微信支付 SDK(排除所有日志库) -->
- <dependency>
- <groupId>com.github.wechatpay-apiv3</groupId>
- <artifactId>wechatpay-java-core</artifactId>
- </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>
- <!-- 显式添加 Gson -->
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- </dependency>
- <!-- RPC 远程调用相关 -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-loadbalancer</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-openfeign</artifactId>
- </dependency>
- <dependency>
- <groupId>io.github.openfeign</groupId>
- <artifactId>feign-okhttp</artifactId>
- </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>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.*</include> <!-- 包含 PEM 文件 -->
- </includes>
- </resource>
- </resources>
- </build>
- </project>
|