simple-starter/simple-starter-cluster/simple-starter-cluster-http-registry/pom.xml

87 lines
3.4 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>
<parent>
<groupId>reliable.simple.starter</groupId>
<artifactId>simple-starter-cluster</artifactId>
<version>${revision}</version>
</parent>
<artifactId>simple-starter-cluster-http-registry</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>HTTP 服务 etcd 注册器(将 Java 服务的 HTTP 端点注册到 etcd,供网关反向代理消费,与 simple-starter-cluster-grpc 的 gRPC 注册并行)</description>
<dependencies>
<!-- jetcd 核心(etcd Java 客户端,版本由父 pom dependencyManagement 管理) -->
<dependency>
<groupId>io.etcd</groupId>
<artifactId>jetcd-core</artifactId>
</dependency>
<!-- Spring Boot 自动配置支持 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- 配置元数据生成(IDE 自动补全支持) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- Jackson 3(JSON 序列化,版本由 Spring Boot BOM 管理) -->
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!-- 单元测试(JUnit 5 + Mockito + AssertJ,版本由 Spring Boot BOM 管理) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 覆盖父 pom 的 <skip>true</skip>,允许本模块运行单元测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
<!-- 覆盖 Spotless 配置:使用项目根目录的 .style/,避免每个模块维护副本 -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<removeUnusedImports/>
<eclipse>
<file>../../.style/p3c-codestyle.xml</file>
</eclipse>
<licenseHeader>
<file>../../.style/license-header</file>
</licenseHeader>
</java>
</configuration>
</plugin>
</plugins>
</build>
</project>