From 34981c30a78e8bbd7791131059a9210f9928b62c Mon Sep 17 00:00:00 2001
From: 刘光辉 <347230014@qq.com>
Date: 星期四, 17 九月 2026 09:24:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master

---
 jnpf-gateway/pom.xml |  201 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 201 insertions(+), 0 deletions(-)

diff --git a/jnpf-gateway/pom.xml b/jnpf-gateway/pom.xml
new file mode 100644
index 0000000..090ea29
--- /dev/null
+++ b/jnpf-gateway/pom.xml
@@ -0,0 +1,201 @@
+<?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">
+    <parent>
+        <artifactId>jnpf-java-cloud</artifactId>
+        <groupId>com.jnpf</groupId>
+        <version>6.1.0-RELEASE</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>jnpf-gateway</artifactId>
+
+    <dependencies>
+        <!-- gateway -->
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-gateway</artifactId>
+        </dependency>
+
+        <!-- sentinel -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
+        </dependency>
+
+        <!-- sentinel-gateway -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
+        </dependency>
+
+        <!-- sentinel-datasource-nacos 宸蹭簬 2026-08-11 绉婚櫎锛堣ˉ涓� #14锛夛細Nacos 浜庤ˉ涓� #8 鎽橀櫎鍚�
+             瀹冩病鏈変换浣曟秷璐硅�咃紙鏈枃浠朵笅鏂归偅涓�澶ф sentinel.datasource.nacos 閰嶇疆鍏ㄦ槸娉ㄩ噴锛夛紝
+             鑷韩 6KB 鍗存嫋杩� nacos-client 13.7MB銆傝瑙� jnpf-common-springaop/pom.xml 鍚屽娉ㄩ噴銆� -->
+
+        <dependency>
+            <groupId>com.github.xiaoymin</groupId>
+            <artifactId>knife4j-gateway-spring-boot-starter</artifactId>
+        </dependency>
+
+        <!--寰湇鍔¢厤缃�-->
+        <dependency>
+            <groupId>com.jnpf</groupId>
+            <artifactId>jnpf-cloud-base</artifactId>
+            <version>${project.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>com.jnpf</groupId>
+                    <artifactId>jnpf-common-core</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>com.jnpf</groupId>
+                    <artifactId>jnpf-common-mq</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <!-- redis妯″潡 -->
+        <dependency>
+            <groupId>com.jnpf</groupId>
+            <artifactId>jnpf-common-auth</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-starter-web</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>cn.dev33</groupId>
+                    <artifactId>sa-token-spring-boot-starter</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>cn.dev33</groupId>
+                    <artifactId>sa-token-spring-boot3-starter</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>com.jnpf</groupId>
+                    <artifactId>jnpf-common-swagger</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <!--        <dependency>-->
+<!--            <groupId>org.springdoc</groupId>-->
+<!--            <artifactId>springdoc-openapi-webmvc-core</artifactId>-->
+<!--            <version>1.6.9</version>-->
+<!--            <scope>compile</scope>-->
+<!--        </dependency>-->
+        <!--        <dependency>-->
+<!--            <groupId>org.springdoc</groupId>-->
+<!--            <artifactId>springdoc-openapi-common</artifactId>-->
+<!--            <version>1.6.15</version>-->
+<!--        </dependency>-->
+
+    </dependencies>
+
+
+    <profiles>
+        <profile>
+            <id>boot3</id>
+            <activation>
+                <jdk>[17,)</jdk>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>cn.dev33</groupId>
+                    <artifactId>sa-token-reactor-spring-boot3-starter</artifactId>
+                    <version>${satoken.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
+            <id>boot2</id>
+            <activation>
+                <jdk>(,17)</jdk>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>cn.dev33</groupId>
+                    <artifactId>sa-token-reactor-spring-boot-starter</artifactId>
+                    <version>${satoken.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
+            <id>default-package</id>
+            <activation>
+                <jdk>[,]</jdk>
+            </activation>
+            <build>
+                <finalName>jnpf-gateway-${project.version}</finalName>
+                <plugins>
+                    <plugin>
+                        <groupId>org.springframework.boot</groupId>
+                        <artifactId>spring-boot-maven-plugin</artifactId>
+                        <configuration>
+                            <!-- 鎸囧畾璇ain Class涓哄叏灞�鐨勫敮涓�鍏ュ彛 -->
+                            <mainClass>jnpf.JnpfGatewayApplication</mainClass>
+                            <layout>ZIP</layout>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>repackage</goal><!--鍙互鎶婁緷璧栫殑鍖呴兘鎵撳寘鍒扮敓鎴愮殑Jar鍖呬腑-->
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>external-package</id>
+            <build>
+                <finalName>jnpf-gateway-${project.version}</finalName>
+                <plugins>
+                    <!-- 澶嶅埗渚濊禆鍒板閮ㄧ洰褰� -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-dependency-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>copy-dependencies</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>copy-dependencies</goal>
+                                </goals>
+                                <configuration>
+                                    <outputDirectory>${external-lib-out-path}</outputDirectory>
+                                    <overWriteReleases>true</overWriteReleases>
+                                    <overWriteSnapshots>true</overWriteSnapshots>
+                                    <overWriteIfNewer>true</overWriteIfNewer>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-jar-plugin</artifactId>
+                        <configuration>
+                            <archive>
+                                <manifest>
+                                    <!--鍚姩绫籶ath-->
+                                    <mainClass>jnpf.JnpfGatewayApplication</mainClass>
+                                    <addClasspath>true</addClasspath>
+                                    <classpathPrefix>${external-lib-start-path}</classpathPrefix>
+                                </manifest>
+                                <manifestEntries>
+                                    <!--濡傛灉涓嶆寚瀹氾紝classpath 鍙兘浼氭壘涓嶅埌锛屽姞杞借祫婧愭湁闂-->
+                                    <Class-Path>.</Class-Path>
+                                </manifestEntries>
+                            </archive>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>
+

--
Gitblit v1.8.0