配置
验证命令:
mvn spotless:check
格式化命令:
mvn spotless:apply
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>3.8.0</version>
<executions>
<execution>
<goals>
<!-- 验证 -->
<goal>check</goal>
</goals>
<!-- 在编译阶段验证 -->
<phase>compile</phase>
<!-- 在打包阶段验证 -->
<!--<phase>package</phase>-->
</execution>
</executions>
<configuration>
<!-- JSON 数据 -->
<json>
<includes>
<!-- 指定文件 -->
<include>
src/main/resources/META-INF/native-image/${project.groupId}/${project.artifactId}/*.json
</include>
</includes>
<jackson/>
<!--<gson/>-->
<!--<simple/>-->
</json>
</configuration>
</plugin>


