|
173 | 173 | <target>17</target> <!-- 生成字节码的 Java 版本 --> |
174 | 174 | </configuration> |
175 | 175 | </plugin> |
176 | | - |
177 | 176 | <!-- Maven Checkstyle Plugin 配置 --> |
178 | | - <plugin> |
179 | | - <groupId>org.apache.maven.plugins</groupId> |
180 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
181 | | - <version>3.6.0</version> |
182 | | - <executions> |
183 | | - <execution> |
184 | | - <id>validate</id> |
185 | | - <phase>validate</phase> <!-- 在 validate 阶段执行 --> |
186 | | - <goals> |
187 | | - <goal>check</goal> <!-- 运行 check 目标 --> |
188 | | - </goals> |
189 | | - </execution> |
190 | | - </executions> |
191 | | - <configuration> |
192 | | - <!-- 配置 checkstyle.xml 文件的路径 --> |
193 | | - <configLocation>app/src/main/resources/checkstyle.xml</configLocation> |
194 | | - <consoleOutput>true</consoleOutput> |
195 | | - <failsOnError>true</failsOnError> |
196 | | - <linkXRef>false</linkXRef> |
197 | | - <outputFile>target/checkstyle-result.xml</outputFile> |
198 | | - <outputFileFormat>xml</outputFileFormat> |
199 | | - </configuration> |
200 | | - </plugin> |
| 177 | +<!-- <plugin>--> |
| 178 | +<!-- <groupId>org.apache.maven.plugins</groupId>--> |
| 179 | +<!-- <artifactId>maven-checkstyle-plugin</artifactId>--> |
| 180 | +<!-- <version>3.6.0</version>--> |
| 181 | +<!-- <executions>--> |
| 182 | +<!-- <execution>--> |
| 183 | +<!-- <id>validate</id>--> |
| 184 | +<!-- <phase>validate</phase> <!– 在 validate 阶段执行 –>--> |
| 185 | +<!-- <goals>--> |
| 186 | +<!-- <goal>check</goal> <!– 运行 check 目标 –>--> |
| 187 | +<!-- </goals>--> |
| 188 | +<!-- </execution>--> |
| 189 | +<!-- </executions>--> |
| 190 | +<!-- <configuration>--> |
| 191 | +<!-- <!– 配置 checkstyle.xml 文件的路径 –>--> |
| 192 | +<!-- <configLocation>app/src/main/resources/checkstyle.xml</configLocation>--> |
| 193 | +<!-- <consoleOutput>true</consoleOutput>--> |
| 194 | +<!-- <failsOnError>true</failsOnError>--> |
| 195 | +<!-- <linkXRef>false</linkXRef>--> |
| 196 | +<!-- <outputFile>target/checkstyle-result.xml</outputFile>--> |
| 197 | +<!-- <outputFileFormat>xml</outputFileFormat>--> |
| 198 | +<!-- </configuration>--> |
| 199 | +<!-- </plugin>--> |
201 | 200 | </plugins> |
202 | 201 | </build> |
203 | 202 | </project> |
0 commit comments