Skip to content

Commit da80eaf

Browse files
spark404Daan Hoogland
authored andcommitted
Backport findbugs configuration to 4.3 so we can run a findbugs report in jenkins.
1 parent 2311528 commit da80eaf

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

pom.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<cs.daemon.version>1.0.10</cs.daemon.version>
8888
<cs.jna.version>4.0.0</cs.jna.version>
8989
<cs.checkstyle.version>2.10</cs.checkstyle.version>
90+
<cs.findbugs.version>2.5.3</cs.findbugs.version>
9091
</properties>
9192

9293
<distributionManagement>
@@ -444,6 +445,21 @@
444445
</testResources>
445446
<outputDirectory>${basedir}/${cs.target.dir}/classes</outputDirectory>
446447
<testOutputDirectory>${basedir}/${cs.target.dir}/test-classes</testOutputDirectory>
448+
<plugins>
449+
<plugin>
450+
<groupId>org.codehaus.mojo</groupId>
451+
<artifactId>findbugs-maven-plugin</artifactId>
452+
<executions>
453+
<execution>
454+
<id>cloudstack-findbugs</id>
455+
<phase>none</phase>
456+
<goals>
457+
<goal>check</goal>
458+
</goals>
459+
</execution>
460+
</executions>
461+
</plugin>
462+
</plugins>
447463
<pluginManagement>
448464
<plugins>
449465
<plugin>
@@ -712,6 +728,25 @@
712728
</formats>
713729
</configuration>
714730
</plugin>
731+
<plugin>
732+
<groupId>org.codehaus.mojo</groupId>
733+
<artifactId>findbugs-maven-plugin</artifactId>
734+
<version>${cs.findbugs.version}</version>
735+
<configuration>
736+
<effort>Max</effort>
737+
<threshold>High</threshold>
738+
<xmlOutput>true</xmlOutput>
739+
<failOnError>false</failOnError>
740+
</configuration>
741+
<executions>
742+
<execution>
743+
<id>cloudstack-findbugs</id>
744+
<goals>
745+
<goal>check</goal>
746+
</goals>
747+
</execution>
748+
</executions>
749+
</plugin>
715750
</plugins>
716751
</pluginManagement>
717752
</build>
@@ -771,5 +806,23 @@
771806
<module>vmware-base</module>
772807
</modules>
773808
</profile>
809+
<profile>
810+
<id>enablefindbugs</id>
811+
<build>
812+
<plugins>
813+
<plugin>
814+
<groupId>org.codehaus.mojo</groupId>
815+
<artifactId>findbugs-maven-plugin</artifactId>
816+
<executions>
817+
<execution>
818+
<id>cloudstack-findbugs</id>
819+
<phase>process-classes</phase>
820+
<inherited>true</inherited>
821+
</execution>
822+
</executions>
823+
</plugin>
824+
</plugins>
825+
</build>
826+
</profile>
774827
</profiles>
775828
</project>

0 commit comments

Comments
 (0)