Maven多模块项目使用Jenkins分析代码的配置

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 20:35   2494   0
<!-- jenkins -->
<plugin>
 <groupId>org.codehaus.mojo</groupId>
 <artifactId>findbugs-maven-plugin</artifactId>
 <version>3.0.3</version>
 <configuration>
  <threshold>High</threshold>
  <effort>Max</effort>
  <!-- 是否输出findbugs.xml -->
  <findbugsXmlOutput>true</findbugsXmlOutput>
  <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
  <xmlOutput>true</xmlOutput>
  <!-- findbugs xml输出路径,如果是多模块的项目的话,不配置这个,不然找不到分析文件 -->
  <!-- <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory> -->
 </configuration>
</plugin>

主要是XML的输出路径,不用配置输出路径,使用默认的输出路径,这样多模块的MAVEN项目,才能找到findBugs的分析文件,生成图形报告。



转载于:https://my.oschina.net/simpleton/blog/656972

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP