2025-09-15 10:36:01 +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>
|
|
|
|
|
|
<groupId>com.sczx</groupId>
|
|
|
|
|
|
<artifactId>ebike-operations</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
<name>ebike-operations</name>
|
|
|
|
|
|
<description>ebike-operations</description>
|
2025-10-14 11:09:22 +08:00
|
|
|
|
|
2025-09-15 10:36:01 +08:00
|
|
|
|
<properties>
|
|
|
|
|
|
<java.version>17</java.version>
|
2025-10-14 11:09:22 +08:00
|
|
|
|
<docker.image.prefix>ebike_plus</docker.image.prefix>
|
2025-09-15 10:36:01 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.cdzy</groupId>
|
|
|
|
|
|
<artifactId>ebike-common</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.cdzy</groupId>
|
|
|
|
|
|
<artifactId>ebike-feign</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.mybatis-flex</groupId>
|
|
|
|
|
|
<artifactId>mybatis-flex-spring-boot3-starter</artifactId>
|
|
|
|
|
|
<version>${mybatis-flex.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.mybatis-flex</groupId>
|
|
|
|
|
|
<artifactId>mybatis-flex-processor</artifactId>
|
|
|
|
|
|
<version>${mybatis-flex.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- nacos客户端依赖包 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
|
|
<version>${nacos.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- PostgreSQL JDBC 驱动 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
|
|
<version>42.7.7</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- PostGIS 支持 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>net.postgis</groupId>
|
|
|
|
|
|
<artifactId>postgis-jdbc</artifactId>
|
|
|
|
|
|
<version>2025.1.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- for test only -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
|
<version>${boot.version}</version>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
|
|
|
|
<version>${boot.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Sa-Token 权限认证,在线文档:https://sa-token.cc -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
|
|
|
|
|
<artifactId>sa-token-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>
|
|
|
|
|
|
|
2025-10-30 10:46:28 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
|
|
<artifactId>jackson-core</artifactId>
|
|
|
|
|
|
<version>${jackson.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2025-09-15 10:36:01 +08:00
|
|
|
|
<!-- 提供Redis连接池 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
|
<artifactId>commons-pool2</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
<version>${org.projectlombok.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.zaxxer</groupId>
|
|
|
|
|
|
<artifactId>HikariCP</artifactId>
|
|
|
|
|
|
<version>${HikariCP.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
|
|
|
<version>${mybatis.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
|
|
<artifactId>hutool-core</artifactId>
|
|
|
|
|
|
<version>${hutool.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
|
|
|
|
<version>${boot.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.mybatis-flex</groupId>
|
|
|
|
|
|
<artifactId>mybatis-flex-codegen</artifactId>
|
|
|
|
|
|
<version>1.10.8</version>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
|
|
|
|
<artifactId>caffeine</artifactId>
|
|
|
|
|
|
<version>3.1.8</version> <!-- Spring Boot 3.3.5 兼容版本 -->
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>net.glxn.qrgen</groupId>
|
|
|
|
|
|
<artifactId>javase</artifactId>
|
|
|
|
|
|
<version>2.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- ZXing 核心库 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.google.zxing</groupId>
|
|
|
|
|
|
<artifactId>core</artifactId>
|
|
|
|
|
|
<version>3.5.1</version>
|
|
|
|
|
|
</dependency>
|
2025-10-14 11:09:22 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.minio</groupId>
|
|
|
|
|
|
<artifactId>minio</artifactId>
|
|
|
|
|
|
<version>${minio.version}</version>
|
|
|
|
|
|
</dependency>
|
2025-10-17 11:28:14 +08:00
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.locationtech.jts</groupId>
|
|
|
|
|
|
<artifactId>jts-core</artifactId>
|
|
|
|
|
|
<version>1.18.2</version> <!-- 请使用最新版本 -->
|
|
|
|
|
|
</dependency>
|
2025-10-30 10:46:28 +08:00
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.kafka</groupId>
|
|
|
|
|
|
<artifactId>spring-kafka</artifactId>
|
|
|
|
|
|
</dependency>
|
2025-09-15 10:36:01 +08:00
|
|
|
|
</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.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
|
<version>3.11.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<!-- 关键配置:使用 <parameters>true</parameters> -->
|
|
|
|
|
|
<parameters>true</parameters>
|
|
|
|
|
|
<source>17</source> <!-- JDK 版本 -->
|
|
|
|
|
|
<target>17</target>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<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>
|
|
|
|
|
|
<groupId>com.spotify</groupId>
|
|
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
|
|
<version>1.2.2</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<!--远程Docker的地址-->
|
|
|
|
|
|
<dockerHost>http://192.168.2.226:2375</dockerHost><!--镜像名称,前缀/项目名-->
|
|
|
|
|
|
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
|
|
|
|
|
<dockerDirectory>src/main/docker</dockerDirectory>
|
|
|
|
|
|
<resources>
|
|
|
|
|
|
<resource>
|
|
|
|
|
|
<targetPath>/</targetPath>
|
|
|
|
|
|
<directory>${project.build.directory}</directory>
|
|
|
|
|
|
<include>${project.build.finalName}.jar</include>
|
|
|
|
|
|
</resource>
|
|
|
|
|
|
</resources>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|