Files
sczx_gateway/pom.xml

180 lines
6.2 KiB
XML
Raw Normal View History

2025-07-05 01:26:54 +08:00
<?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>
<groupId>com.sczx</groupId>
2025-07-06 17:19:51 +08:00
<artifactId>sczx_gateway</artifactId>
2025-07-05 01:26:54 +08:00
<version>1.0.0</version>
<packaging>jar</packaging>
2025-07-06 17:19:51 +08:00
<name>sczx_gateway</name>
2025-07-05 01:26:54 +08:00
<description>统一 API 网关服务</description>
<properties>
2025-07-06 23:14:26 +08:00
<java.version>17</java.version>
2025-07-06 23:05:01 +08:00
<spring-boot.version>2.6.12</spring-boot.version>
<spring-cloud.version>2021.0.5</spring-cloud.version>
<spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>
2025-07-05 01:26:54 +08:00
</properties>
<!-- Parent -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
2025-07-06 23:05:01 +08:00
<version>2.6.12</version>
2025-07-05 01:26:54 +08:00
<relativePath/>
</parent>
<!-- Dependency Management -->
<dependencyManagement>
<dependencies>
<!-- Spring Cloud Greenwich.SR6 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Spring Cloud Alibaba -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${spring-cloud-alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- Dependencies -->
<dependencies>
<!-- Spring WebFlux -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<!-- Spring Cloud Gateway -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<!-- Nacos Discovery -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
2025-07-06 23:05:01 +08:00
<!-- LoadBalancer 支持 lb:// 协议 -->
2025-07-07 00:45:50 +08:00
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-loadbalancer</artifactId>-->
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-commons</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
<!-- </dependency>-->
2025-07-06 23:05:01 +08:00
<dependency>
2025-07-07 00:45:50 +08:00
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
2025-07-06 23:05:01 +08:00
</dependency>
2025-07-05 01:26:54 +08:00
<!-- Actuator 监控 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Redis 限流支持 -->
2025-07-06 17:06:12 +08:00
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-data-redis-reactive</artifactId>-->
<!-- </dependency>-->
2025-07-05 01:26:54 +08:00
<!-- Lombok -->
2025-07-05 18:36:57 +08:00
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
2025-07-05 18:56:59 +08:00
<version> 1.18.30</version>
2025-07-05 18:36:57 +08:00
</dependency>
2025-07-05 01:26:54 +08:00
<!-- Swagger 文档 -->
2025-07-06 17:06:12 +08:00
<!-- <dependency>-->
<!-- <groupId>org.springdoc</groupId>-->
<!-- <artifactId>springdoc-openapi-ui</artifactId>-->
<!-- <version>1.6.14</version>-->
<!-- </dependency>-->
2025-07-05 01:26:54 +08:00
</dependencies>
<!-- Build Configuration -->
<build>
2025-07-06 17:19:51 +08:00
<finalName>sczx_gateway</finalName>
2025-07-05 01:26:54 +08:00
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>*.yml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>*.yml</exclude>
</excludes>
</resource>
</resources>
<plugins>
<!-- Compiler Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
2025-07-05 01:55:57 +08:00
<!-- 强制使用 Java 8 模式编译 -->
2025-07-05 13:17:46 +08:00
<!-- <release>8</release>-->
2025-07-05 01:26:54 +08:00
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<!-- Spring Boot Maven Plugin -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>