From 9d735dd28828cd87489e5e10d0db6d68ed0287f9 Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Thu, 23 Jan 2014 09:03:22 +0100 Subject: [PATCH] Add a profile that enables findbugs checks at build time. Use -Penablefindbugs to enable findbugs. Add a bit of reporting configuration so the mvn site target includes javadoc and a findbugs report --- pom.xml | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/pom.xml b/pom.xml index 8fd1f54219c..8d8426186fb 100644 --- a/pom.xml +++ b/pom.xml @@ -469,6 +469,19 @@ + + org.codehaus.mojo + findbugs-maven-plugin + + + cloudstack-findbugs + none + + check + + + + @@ -577,6 +590,15 @@ + + org.apache.maven.plugins + maven-site-plugin + 3.3 + + 9000 + ${basedir}/target/site/tempdir + + @@ -840,9 +862,44 @@ + + org.codehaus.mojo + findbugs-maven-plugin + 2.5.3 + + Max + High + true + false + + + + cloudstack-findbugs + + check + + + + + + + + org.codehaus.mojo + findbugs-maven-plugin + + Low + Default + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + awsapi @@ -916,5 +973,23 @@ + + enablefindbugs + + + + org.codehaus.mojo + findbugs-maven-plugin + + + cloudstack-findbugs + process-classes + true + + + + + +