`

在maven项目中使用findbugs

    博客分类:
  • java
阅读更多

1.在pom.xml中添加插件依赖

<plugin>  
                <groupId>org.codehaus.mojo</groupId>  
                <artifactId>findbugs-maven-plugin</artifactId>  
                <version>2.5.2</version>  
                <configuration>  
                    <xmlOutput>true</xmlOutput>  
                    <effort>Max</effort>
                    <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
                </configuration>  
            </plugin>  
			

 2.执行clean命令清理项目

 

3.执行package命令打包

 

4.执行 findbugs:findbugs 



 

 

5.执行 findbugs:gui 查看bug

 

  • 大小: 90.8 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics