6
如何使用Sonar中的FindBugs配置文件作爲Maven FindBugs plugin中的規則集?從Sonar導入FindBugs配置到Maven
如何使用Sonar中的FindBugs配置文件作爲Maven FindBugs plugin中的規則集?從Sonar導入FindBugs配置到Maven
您可以將您的文件,即findbugs-sonar.xml
在src /主/資源文件夾,並指定你的Maven報告是這樣設置的路徑:
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.3-SNAPSHOT</version>
<configuration>
<includeFilterFile>findbugs-sonar.xml</includeFilterFile>
</configuration>
</plugin>
</plugins>
</reporting>
請注意,是新SonarQube版本不靠FindBugs了。 – slartidan