【发布时间】:2012-05-18 00:29:16
【问题描述】:
我在项目的 pom.xml 文件中使用以下内容。即使不存在高优先级错误,运行findbugs:check 目标仍然会因所有错误而失败。我做错了什么?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<id>failing-on-high</id>
<phase>process-test-resources</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<threshold>High</threshold>
<onlyAnalyze>com.example.-</onlyAnalyze>
</configuration>
</execution>
</executions>
【问题讨论】:
标签: java maven findbugs pom.xml