151 lines
6.3 KiB
XML
151 lines
6.3 KiB
XML
<?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-dependencies</artifactId>
|
||
<version>${revision}</version>
|
||
<relativePath>./simple-starter-dependencies</relativePath>
|
||
</parent>
|
||
|
||
<artifactId>simple-starter</artifactId>
|
||
<packaging>pom</packaging>
|
||
<name>Simple Starter</name>
|
||
<properties>
|
||
<java.version>21</java.version>
|
||
<resource.delimiter>@</resource.delimiter>
|
||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||
<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||
</properties>
|
||
|
||
<modules>
|
||
<module>simple-starter-dependencies</module>
|
||
<module>simple-starter-bom</module>
|
||
<module>simple-starter-core</module>
|
||
<module>simple-starter-json</module>
|
||
<module>simple-starter-doc</module>
|
||
<module>simple-starter-validation</module>
|
||
<module>simple-starter-web</module>
|
||
<module>simple-starter-cache</module>
|
||
<module>simple-starter-auth</module>
|
||
<module>simple-starter-data</module>
|
||
<module>simple-starter-encrypt</module>
|
||
<module>simple-starter-captcha</module>
|
||
<module>simple-starter-security</module>
|
||
<module>simple-starter-trace</module>
|
||
<module>simple-starter-messaging</module>
|
||
<module>simple-starter-log</module>
|
||
<module>simple-starter-monitor</module>
|
||
<module>simple-starter-excel</module>
|
||
<module>simple-starter-storage</module>
|
||
<module>simple-starter-enhance</module>
|
||
<module>simple-starter-network</module>
|
||
<module>simple-starter-cluster</module>
|
||
<module>simple-starter-job</module>
|
||
</modules>
|
||
|
||
<dependencies>
|
||
<!-- Mockito Java Agent(避免 JDK 未来版本禁止动态自附加,版本由 Spring Boot BOM 管理) -->
|
||
<dependency>
|
||
<groupId>net.bytebuddy</groupId>
|
||
<artifactId>byte-buddy-agent</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<!-- 编译插件 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<configuration>
|
||
<compilerArgument>-parameters</compilerArgument>
|
||
<!-- JDK 23+ 默认关闭注解处理(javac -proc 默认值变更),不显式指定 full 会导致
|
||
Lombok 处理器不运行,getter/setter/@Slf4j 的 log 全部“找不到符号” -->
|
||
<proc>full</proc>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 代码格式化插件 -->
|
||
<plugin>
|
||
<groupId>com.diffplug.spotless</groupId>
|
||
<artifactId>spotless-maven-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<phase>compile</phase>
|
||
<goals>
|
||
<goal>apply</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<java>
|
||
<removeUnusedImports/>
|
||
<eclipse>
|
||
<file>.style/p3c-codestyle.xml</file>
|
||
</eclipse>
|
||
<licenseHeader>
|
||
<file>.style/license-header</file>
|
||
</licenseHeader>
|
||
</java>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 统一版本号插件 -->
|
||
<plugin>
|
||
<groupId>org.codehaus.mojo</groupId>
|
||
<artifactId>flatten-maven-plugin</artifactId>
|
||
<configuration>
|
||
<updatePomFile>true</updatePomFile>
|
||
<flattenMode>oss</flattenMode>
|
||
<pomElements>
|
||
<parent>expand</parent>
|
||
<properties>keep</properties>
|
||
</pomElements>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>flatten</id>
|
||
<phase>process-resources</phase>
|
||
<goals>
|
||
<goal>flatten</goal>
|
||
</goals>
|
||
</execution>
|
||
<execution>
|
||
<id>flatten-clean</id>
|
||
<phase>clean</phase>
|
||
<goals>
|
||
<goal>clean</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!-- 解析依赖路径属性(将 byte-buddy-agent jar 路径设置为 ${net.bytebuddy:byte-buddy-agent:jar} 属性) -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<id>resolve-dependency-paths</id>
|
||
<phase>initialize</phase>
|
||
<goals>
|
||
<goal>properties</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!-- 测试插件(通过 -javaagent 显式加载 Mockito Agent,替代动态自附加) -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<configuration>
|
||
<argLine>-javaagent:${net.bytebuddy:byte-buddy-agent:jar}</argLine>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|