所以我正在使用 maven-plugin-plugin 创建一个 maven 插件。maven-plugin-plugin 中的 HelpMojo 生成一个 java 源文件。
不幸的是,PMD 正在接受并抱怨它。有没有办法让 PMD 只忽略一个源文件?谢谢!
Maven PMD 配置:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<executions>
<execution>
<id>pmd-verify</id>
<goals>
<goal>check</goal>
<goal>cpd-check</goal>
</goals>
<configuration>
<printFailingErrors>true</printFailingErrors>
</configuration>
</execution>
</executions>
</plugin>