title: Maven Findbugs not producing reports in site lifecycle
body: <p>I'm trying to create the Findbugs HTML report for the site reports. I finally got Findbugs to actually run (before it would skip) because I had to include the goal <code>findbugs</code> in the <code>&lt;build&gt;</code> phase under the <code>find bugs</code> report. However, the <code>findbugs.html</code> report is not being generated even though I have findbugs defined in my <code>&lt;reporting&gt;</code> section.</p>
  
  <p>Here's my configuration for Findbugs:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          ...
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;xmlOutput&gt;true&lt;/xmlOutput&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;findbugs&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
        ....
      &lt;plugins&gt;
  &lt;/build&gt;
  ....
  &lt;reporting&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;xmlOutput&gt;true&lt;/xmlOutput&gt;
                  &lt;failOnError&gt;false&lt;/failOnError&gt;
                  &lt;xmlOutput&gt;true&lt;/xmlOutput&gt;
                  &lt;skip&gt;false&lt;/skip&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;reporting&gt;
  </code></pre>
  
  <p>My execution looks like this:</p>
  
  <pre><code>$ mvn clean site
  [INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building project 2.0.4
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ crypto ---
  [INFO] Deleting target
  [INFO] 
  [INFO] --- maven-site-plugin:3.3:site (default-site) @ crypto ---
  [INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
  [INFO] configuring report plugin org.codehaus.mojo:findbugs-maven-plugin:2.5.2
  [INFO] configuring report plugin org.apache.maven.plugins:maven-pmd-plugin:3.0.1
  [INFO] configuring report plugin org.apache.maven.plugins:maven-javadoc-plugin:2.9.1
  [INFO] 
  [INFO] &gt;&gt;&gt; maven-javadoc-plugin:2.9.1:aggregate (report:aggregate) @ crypto &gt;&gt;&gt;
  [INFO] 
  [INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) @ crypto ---
  Retrieving document at 'src/main/wsdl/Tokenizer.wsdl'.
  [INFO] 
  [INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ crypto ---
  [INFO] Source directory: target/generated-sources added.
  [INFO] 
  [INFO] &lt;&lt;&lt; maven-javadoc-plugin:2.9.1:aggregate (report:aggregate) @ crypto &lt;&lt;&lt;
  [INFO] 
  [INFO] &gt;&gt;&gt; maven-javadoc-plugin:2.9.1:test-aggregate (report:test-aggregate) @ crypto &gt;&gt;&gt;
  [INFO] 
  [INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) @ crypto ---
  Retrieving document at 'src/main/wsdl/SafeNetTokenizer.wsdl'.
  [INFO] 
  [INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ crypto ---
  [INFO] Source directory: /Users/david/workspace/KeyManagment-trunk/target/generated-sources added.
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ crypto ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory /Users/david/workspace/KeyManagment-trunk/src/main/resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ crypto ---
  [INFO] Compiling 13 source files to /Users/david/workspace/KeyManagment-trunk/target/classes
  [INFO] 
  [INFO] --- findbugs-maven-plugin:2.5.2:findbugs (default) @ crypto ---
  [INFO] Fork Value is true
      [java] The following classes needed for analysis were missing:
      [java]   com.ingrian.internal.ilc.IngrianLogger
      [java]   com.ingrian.security.nae.NAESession
      [java]   com.ingrian.internal.config.Config
      [java]   com.ingrian.security.nae.NAEKey
      [java]   com.ingrian.security.nae.HmacSHA256
      [java]   com.ingrian.internal.xml.XMLException
      [java]   com.ingrian.security.nae.NAEAESCipher
      [java]   com.ingrian.security.nae.IngrianProvider
      [java] Warnings generated: 310
      [java] Missing classes: 8
  [INFO] Done FindBugs Analysis....
  [INFO] 
  [INFO] --- maven-bundle-plugin:2.3.7:manifest (bundle-manifest) @ crypto ---
  [INFO] 
  [INFO] &lt;&lt;&lt; maven-javadoc-plugin:2.9.1:test-aggregate (report:test-aggregate) @ crypto &lt;&lt;&lt;
  [INFO] 
  [INFO] &gt;&gt;&gt; maven-javadoc-plugin:2.9.1:javadoc (report:javadoc) @ crypto &gt;&gt;&gt;
  [INFO] 
  [INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) @ crypto ---
  Retrieving document at 'src/main/wsdl/SafeNetTokenizer.wsdl'.
  [INFO] 
  [INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ crypto ---
  [INFO] Source directory: /Users/david/workspace/KeyManagment-trunk/target/generated-sources added.
  [INFO] 
  [INFO] &lt;&lt;&lt; maven-javadoc-plugin:2.9.1:javadoc (report:javadoc) @ crypto &lt;&lt;&lt;
  [INFO] 
  [INFO] &gt;&gt;&gt; maven-javadoc-plugin:2.9.1:test-javadoc (report:test-javadoc) @ crypto &gt;&gt;&gt;
  [INFO] 
  [INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) @ crypto ---
  Retrieving document at 'src/main/wsdl/SafeNetTokenizer.wsdl'.
  [INFO] 
  [INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ crypto ---
  [INFO] Source directory: /Users/david/workspace/KeyManagment-trunk/target/generated-sources added.
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ crypto ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory /Users/david/workspace/KeyManagment-trunk/src/main/resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ crypto ---
  [INFO] Compiling 2 source files to /Users/david/workspace/KeyManagment-trunk/target/classes
  [INFO] 
  [INFO] --- findbugs-maven-plugin:2.5.2:findbugs (default) @ crypto ---
  [INFO] Fork Value is true
      [java] The following classes needed for analysis were missing:
      [java]   com.ingrian.internal.ilc.IngrianLogger
      [java]   com.ingrian.security.nae.NAESession
      [java]   com.ingrian.internal.config.Config
      [java]   com.ingrian.security.nae.NAEKey
      [java]   com.ingrian.security.nae.HmacSHA256
      [java]   com.ingrian.internal.xml.XMLException
      [java]   com.ingrian.security.nae.NAEAESCipher
      [java]   com.ingrian.security.nae.IngrianProvider
      [java] Warnings generated: 310
      [java] Missing classes: 8
  [INFO] Done FindBugs Analysis....
  [INFO] 
  [INFO] --- maven-bundle-plugin:2.3.7:manifest (bundle-manifest) @ crypto ---
  [INFO] 
  [INFO] &lt;&lt;&lt; maven-javadoc-plugin:2.9.1:test-javadoc (report:test-javadoc) @ crypto &lt;&lt;&lt;
  [WARNING] No project URL defined - decoration links will not be relativized!
  [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
  [INFO] Skipped "JavaDocs" report, file "apidocs/index.html" already exists for the English version.
  [INFO] Skipped "Test JavaDocs" report, file "testapidocs/index.html" already exists for the English version.
  [INFO] Generating "About" report    --- maven-project-info-reports-plugin:2.7
  [INFO] Generating "Plugin Management" report    --- maven-project-info-reports-plugin:2.7
  ...
  [INFO] Generating "Project Team" report    --- maven-project-info-reports-plugin:2.7
  [INFO] Generating "Project Summary" report    --- maven-project-info-reports-plugin:2.7
  [INFO] Generating "Dependencies" report    --- maven-project-info-reports-plugin:2.7
  [INFO] Generating "CPD Report" report    --- maven-pmd-plugin:3.0.1
  [WARNING] Unable to locate Source XRef to link to - DISABLED
  [INFO] Generating "PMD Report" report    --- maven-pmd-plugin:3.0.1
  [WARNING] Unable to locate Source XRef to link to - DISABLED
  [INFO] Generating "JavaDocs" report    --- maven-javadoc-plugin:2.9.1
  [INFO] 
  Loading source files for package com.ihotelier.crypto...
  Loading source files for package com.safenet.tokenization.wsclient...
  Constructing Javadoc information...
  Standard Doclet version 1.7.0_13
  Building tree for all the packages and classes...
  Generating ...
  4 warnings
  [WARNING] Javadoc Warnings
  [WARNING] ...
  [INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3:30.831s
  [INFO] Finished at: Tue Nov 05 14:02:04 EST 2013
  [INFO] Final Memory: 40M/115M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>I see findbugs being <em>configured</em> in the beginning of my execution under the <code>maven-site-plugin</code>. I see Findbugs executing (twice!) after <code>maven-compiler-plugin</code> runs. (I may change the goal to <em>process-classes</em> to prevent this double execution. I see 8 errors, but we don't really use those classes. (I need to figure out how to <em>skip</em> over these classes).</p>
  
  <p>Near the end of the build, I see the PMD and CPD Reports being generated (<code>Generating "CPD Report" report</code>), but not Findbugs.</p>
  
  <p>When I look at the build results, I see <code>target/findbugs.xml</code> and <code>target/findbugsXML.xml</code>, but nothing under <code>target/site</code>.</p>
  
  <p>Sorry for the excessive output. I want to make sure I wasn't skipping anything important.</p>