This commit is contained in:
2023-11-22 17:43:23 +08:00
parent 57facd65de
commit e78d75d91e

61
pom.xml
View File

@@ -348,7 +348,6 @@
<filtering>false</filtering>
<includes>
<include>**/*.xdb</include> <!-- 假设 XML 文件是二进制文件 -->
<include>**/*.db</include> <!-- 假设 XML 文件是二进制文件 -->
<!-- 添加其他二进制文件的匹配规则 -->
</includes>
</resource>
@@ -394,36 +393,36 @@
</plugin>
<plugin>
<groupId>com.cosium.code</groupId>
<artifactId>git-code-format-maven-plugin</artifactId>
<version>${git-code-format-maven-plugin.version}</version>
<executions>
<!-- On commit, format the modified files -->
<execution>
<id>install-formatter-hook</id>
<goals>
<goal>install-hooks</goal>
</goals>
</execution>
<!-- On Maven verify phase, fail if any file
(including unmodified) is badly formatted -->
<execution>
<id>validate-code-format</id>
<goals>
<goal>validate-code-format</goal>
</goals>
</execution>
</executions>
<dependencies>
<!-- Enable https://github.com/google/google-java-format -->
<dependency>
<groupId>com.cosium.code</groupId>
<artifactId>google-java-format</artifactId>
<version>${git-code-format-maven-plugin.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.cosium.code</groupId>-->
<!-- <artifactId>git-code-format-maven-plugin</artifactId>-->
<!-- <version>${git-code-format-maven-plugin.version}</version>-->
<!-- <executions>-->
<!-- &lt;!&ndash; On commit, format the modified files &ndash;&gt;-->
<!-- <execution>-->
<!-- <id>install-formatter-hook</id>-->
<!-- <goals>-->
<!-- <goal>install-hooks</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- &lt;!&ndash; On Maven verify phase, fail if any file-->
<!-- (including unmodified) is badly formatted &ndash;&gt;-->
<!-- <execution>-->
<!-- <id>validate-code-format</id>-->
<!-- <goals>-->
<!-- <goal>validate-code-format</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <dependencies>-->
<!-- &lt;!&ndash; Enable https://github.com/google/google-java-format &ndash;&gt;-->
<!-- <dependency>-->
<!-- <groupId>com.cosium.code</groupId>-->
<!-- <artifactId>google-java-format</artifactId>-->
<!-- <version>${git-code-format-maven-plugin.version}</version>-->
<!-- </dependency>-->
<!-- </dependencies>-->
<!-- </plugin>-->
</plugins>
</build>