2025-08-09 01:37:25 +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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>com.cdzy</groupId>
|
|
|
|
|
|
<artifactId>ebike-plus</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
<artifactId>ebike-gateway</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
<name>ebike-gateway</name>
|
|
|
|
|
|
<description>ebike-gateway</description>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<java.version>17</java.version>
|
|
|
|
|
|
<docker.image.prefix>cdzy_ebike</docker.image.prefix>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.cdzy</groupId>
|
|
|
|
|
|
<artifactId>ebike-common</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- nacos客户端依赖包 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
|
|
<version>${nacos.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!--网关gateway依赖-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-gateway</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-loadbalancer</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Sa-Token 权限认证(Reactor响应式集成), 在线文档:https://sa-token.cc -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
|
|
|
|
|
<artifactId>sa-token-reactor-spring-boot3-starter</artifactId>
|
|
|
|
|
|
<version>${satoken.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Sa-Token 整合 Redis (使用 jackson 序列化方式) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
|
|
|
|
|
<artifactId>sa-token-redis-jackson</artifactId>
|
|
|
|
|
|
<version>${satoken.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
|
<artifactId>commons-pool2</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
|
|
<artifactId>jackson-core</artifactId>
|
|
|
|
|
|
<version>${jackson.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
<profiles>
|
|
|
|
|
|
<!--开发环境-->
|
|
|
|
|
|
<profile>
|
|
|
|
|
|
<id>dev</id>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<profile.active>dev</profile.active>
|
|
|
|
|
|
<!--谁设置为true 就激活那个环境-->
|
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<!--生产环境-->
|
|
|
|
|
|
<profile>
|
|
|
|
|
|
<id>prod</id>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<profile.active>prod</profile.active>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
|
|
<id>test</id>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<profile.active>test</profile.active>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
</profile>
|
|
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
|
<version>${boot.version}</version> <!-- 与项目版本一致 -->
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>repackage</goal> <!-- 必须包含此目标 -->
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
2026-01-14 01:25:11 +08:00
|
|
|
|
<groupId>io.fabric8</groupId>
|
2025-08-09 01:37:25 +08:00
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
2026-01-14 01:25:11 +08:00
|
|
|
|
<version>${docker-maven-plugin.version}</version>
|
2025-08-09 01:37:25 +08:00
|
|
|
|
<configuration>
|
2026-01-14 01:25:11 +08:00
|
|
|
|
<images>
|
|
|
|
|
|
<image>
|
|
|
|
|
|
<name>${docker.image.prefix}/${project.artifactId}:${project.version}</name>
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<!-- 指定Dockerfile路径 -->
|
|
|
|
|
|
<dockerFile>src/main/docker/Dockerfile</dockerFile>
|
|
|
|
|
|
<args>
|
|
|
|
|
|
<!-- 构建参数,对应Dockerfile中的 ARG JAR_FILE -->
|
|
|
|
|
|
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
|
|
|
|
|
|
</args>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
</image>
|
|
|
|
|
|
</images>
|
|
|
|
|
|
<!-- 远程Docker主机 -->
|
|
|
|
|
|
<dockerHost>${docker.host}</dockerHost>
|
2025-08-09 01:37:25 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|