2026-04-09 13:00:30 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2026-04-12 00:15:59 +08:00
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
2026-04-09 13:00:30 +08:00
|
|
|
|
https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
|
<version>3.2.5</version>
|
|
|
|
|
|
<relativePath/>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
|
|
<groupId>com.label</groupId>
|
|
|
|
|
|
<artifactId>label-backend</artifactId>
|
|
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<java.version>17</java.version>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
2026-04-09 13:10:33 +08:00
|
|
|
|
<dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!-- AWS SDK v2 BOM -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>software.amazon.awssdk</groupId>
|
|
|
|
|
|
<artifactId>bom</artifactId>
|
|
|
|
|
|
<version>2.26.31</version>
|
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Testcontainers BOM -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
|
|
<artifactId>testcontainers-bom</artifactId>
|
|
|
|
|
|
<version>1.20.1</version>
|
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
2026-04-09 13:00:30 +08:00
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!-- Spring Boot Web -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-04-09 13:20:07 +08:00
|
|
|
|
<!-- Spring Boot Actuator (health check endpoint) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-04-09 13:10:33 +08:00
|
|
|
|
<!-- Spring Boot Data Redis (Lettuce) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Spring Boot AOP -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- PostgreSQL JDBC Driver -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MyBatis Plus -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.baomidou</groupId>
|
2026-04-12 00:15:59 +08:00
|
|
|
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
|
|
|
|
|
<version>3.5.10</version>
|
2026-04-09 13:10:33 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-04-09 13:31:14 +08:00
|
|
|
|
<!-- MyBatis Plus JSqlParser (required for TenantLineInnerInterceptor in 3.5.7+) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
|
|
|
<artifactId>mybatis-plus-jsqlparser</artifactId>
|
2026-04-12 00:15:59 +08:00
|
|
|
|
<version>3.5.10</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
|
|
|
|
<version>2.5.0</version>
|
2026-04-09 13:31:14 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-04-09 13:10:33 +08:00
|
|
|
|
<!-- Apache Shiro -->
|
2026-04-13 20:44:42 +08:00
|
|
|
|
<!-- <dependency>
|
2026-04-09 13:10:33 +08:00
|
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
|
|
|
<artifactId>shiro-spring-boot-web-starter</artifactId>
|
2026-04-13 20:44:42 +08:00
|
|
|
|
<version>2.1.0</version>
|
|
|
|
|
|
</dependency> -->
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
|
|
|
<artifactId>shiro-core</artifactId>
|
|
|
|
|
|
<classifier>jakarta</classifier>
|
|
|
|
|
|
<version>2.0.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
|
|
|
<artifactId>shiro-web</artifactId>
|
|
|
|
|
|
<classifier>jakarta</classifier>
|
|
|
|
|
|
<version>2.0.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
|
|
|
<artifactId>shiro-spring</artifactId>
|
|
|
|
|
|
<classifier>jakarta</classifier>
|
|
|
|
|
|
<version>2.0.0</version>
|
|
|
|
|
|
<exclusions>
|
|
|
|
|
|
<exclusion>
|
|
|
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
|
|
|
<artifactId>shiro-web</artifactId>
|
|
|
|
|
|
</exclusion>
|
|
|
|
|
|
</exclusions>
|
2026-04-09 13:10:33 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- AWS SDK v2 - S3 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>software.amazon.awssdk</groupId>
|
|
|
|
|
|
<artifactId>s3</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- AWS SDK v2 - STS -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>software.amazon.awssdk</groupId>
|
|
|
|
|
|
<artifactId>sts</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Spring Security Crypto (BCrypt only, no web filter chain) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
|
|
<artifactId>spring-security-crypto</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-04-09 13:00:30 +08:00
|
|
|
|
<!-- Lombok -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Spring Boot Test -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
2026-04-09 13:10:33 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- Testcontainers - PostgreSQL -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Testcontainers - JUnit Jupiter -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
2026-04-09 13:00:30 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
2026-04-09 19:39:28 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 薄 jar:仅打包编译后的 class,输出到 target/libs/ -->
|
2026-04-09 13:00:30 +08:00
|
|
|
|
<plugin>
|
2026-04-09 19:39:28 +08:00
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
2026-04-09 13:00:30 +08:00
|
|
|
|
<configuration>
|
2026-04-09 19:39:28 +08:00
|
|
|
|
<outputDirectory>${project.build.directory}/libs</outputDirectory>
|
|
|
|
|
|
<archive>
|
|
|
|
|
|
<manifest>
|
|
|
|
|
|
<mainClass>com.label.LabelBackendApplication</mainClass>
|
|
|
|
|
|
<addClasspath>false</addClasspath>
|
|
|
|
|
|
</manifest>
|
|
|
|
|
|
</archive>
|
2026-04-09 13:00:30 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
2026-04-09 19:39:28 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 将所有运行时依赖复制到 target/libs/ -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>copy-dependencies</id>
|
|
|
|
|
|
<phase>package</phase>
|
2026-04-12 00:15:59 +08:00
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>copy-dependencies</goal>
|
|
|
|
|
|
</goals>
|
2026-04-09 19:39:28 +08:00
|
|
|
|
<configuration>
|
|
|
|
|
|
<outputDirectory>${project.build.directory}/libs</outputDirectory>
|
2026-04-09 19:47:12 +08:00
|
|
|
|
<includeScope>runtime</includeScope>
|
2026-04-09 19:39:28 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 组装分发包(zip + tar.gz) -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>create-distribution</id>
|
|
|
|
|
|
<phase>package</phase>
|
2026-04-12 00:15:59 +08:00
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>single</goal>
|
|
|
|
|
|
</goals>
|
2026-04-09 19:39:28 +08:00
|
|
|
|
<configuration>
|
|
|
|
|
|
<descriptors>
|
|
|
|
|
|
<descriptor>src/main/assembly/distribution.xml</descriptor>
|
|
|
|
|
|
</descriptors>
|
|
|
|
|
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
2026-04-09 13:00:30 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
2026-04-12 00:15:59 +08:00
|
|
|
|
</project>
|