【发布时间】:2016-01-18 23:55:37
【问题描述】:
Maven 版本:3.3.3。 Findbugs 插件版本:3.0.1
-
我正在使用
findbugs-maven-plugin,我需要运行 findbugs src 和测试类的插件。目前仅适用于源类Target |_ classes |_ test-classes |_ findbugs (only have results regarding classes folder) 我需要为 PMD 插件做同样的事情。可能是同样的提示?
相关问题:
Findbugs maven 配置:
<profile>
<id>findbugs</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbugs.version}</version>
<configuration>
<effort>Max</effort>
<failOnError>true</failOnError>
<threshold>Low</threshold>
<xmlOutput>true</xmlOutput>
<includeTests>true</includeTests>
<excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
</configuration>
<executions>
<execution>
<id>analyze-compile</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
<goal>findbugs</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
【问题讨论】: