Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何使用findbugs maven插件生成1个报告?_Java_Maven_Jenkins_Pom.xml_Findbugs - Fatal编程技术网

Java 如何使用findbugs maven插件生成1个报告?

Java 如何使用findbugs maven插件生成1个报告?,java,maven,jenkins,pom.xml,findbugs,Java,Maven,Jenkins,Pom.xml,Findbugs,我想使用findbugs插件生成一个全局xml报告。我的树: pom.xml └── /project 1 └── pom.xml └── /project 2 └── pom.xml 还有我的父母pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifact

我想使用findbugs插件生成一个全局xml报告。我的树:

pom.xml
 └── /project 1
      └── pom.xml
 └── /project 2
       └── pom.xml
还有我的父母pom.xml:

<plugin>
     <groupId>org.codehaus.mojo</groupId>
     <artifactId>findbugs-maven-plugin</artifactId>
     <version>2.5.3</version>
     <configuration>
                <skip>true</skip>
                <xmlOutput>true</xmlOutput>
                <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
     </configuration>
</plugin>

org.codehaus.mojo
findbugs maven插件
2.5.3
真的
真的
${project.build.directory}/findbugs
实际上,命令
mvn compile findbugs:findbugs
为每个项目生成一个xml报告


提前谢谢

嗯,让Maven以不同的方式做事可能很难

一种解决方法可能是使用命令最终合并所有FindBugs报告。UnionBugs命令似乎基于,他也解释了Ant的任务。UnionBugs Ant任务是标准FindBugs的一部分

给你。因为您使用的是Jenkins,所以也可以在Jenkins作业配置中的Maven步骤之后简单地定义Ant步骤