Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>findbugs-maven-plugin</code> plugin needs to be configured in <strong>BOTH</strong> the <code>&lt;reporting&gt;&lt;plugins/&gt;&lt;/reporting&gt;</code> and <code>&lt;build&gt;&lt;plugins/&gt;&lt;/build&gt;</code> section. Have experimented with this all sorts of ways and the only way I have been able to get it to work is to duplicate <code>findbugs-maven-plugin</code> configuration.</p> <p>So try adding something like the following in your pom.xml:</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;failOnError&gt;false&lt;/failOnError&gt; &lt;threshold&gt;High&lt;/threshold&gt; &lt;effort&gt;Default&lt;/effort&gt; &lt;xmlOutput&gt;true&lt;/xmlOutput&gt; &lt;skip&gt;${skipFindBugs}&lt;/skip&gt; &lt;xmlOutputDirectory&gt;target/reports/findbugs&lt;/xmlOutputDirectory&gt; &lt;excludeFilterFile&gt; src/main/resources/findbugs-exclude-filters.xml &lt;/excludeFilterFile&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre> <p>Note that it's a cut and paste of what you posted inside of the <code>&lt;reporting/&gt;</code> block. I have not tested the above. I'm just trying to give you a general idea here.</p> <p>The <a href="http://maven.apache.org/pom.html#Reporting" rel="nofollow">Reporting section of the POM Reference</a> states that:</p> <blockquote> <p>And the subtler difference is that a plugin configuration under the reporting element works as build plugin configuration, although the opposite is not true (a build plugin configuration does not affect a reporting plugin).</p> </blockquote> <p>I have been able to make this work with Maven 3.0.5. I have not tried it on 3.1.0 yet.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload