title: How to make maven build failure when bug is found using findBug plugin
body: <p>I have just added maven find bug plugin in my project pom:</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0.4&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;xmlOutput&gt;true&lt;/xmlOutput&gt;
                  &lt;!-- Optional directory to put findbugs xdoc xml report --&gt;
                  &lt;xmlOutputDirectory&gt;target/site&lt;/xmlOutputDirectory&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;findbugs&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>for reporting I have added below:</p>
  
  <pre><code>&lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.0.4&lt;/version&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>Now when i run maven using <strong>install</strong> it gives me warnings below:</p>
  
  <pre><code>&gt; [INFO] --- findbugs-maven-plugin:3.0.4:findbugs (default) @
  &gt; MovesouqBackend --- [INFO] Fork Value is true
  &gt;      [java] Warnings generated: 12 [INFO] Done FindBugs Analysis....
  </code></pre>
  
  <p>It shows there are 12 bugs as warning and build successful.</p>
  
  <pre><code>    [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] --------------------------------------------------------------
  
  ----------
  </code></pre>
  
  <p>I want to make build fail when there is any warning found against findbug plugin and I want to show this warning as error.
  I have gone through plugin <a href="http://gleclaire.github.io/findbugs-maven-plugin/usage.html" rel="noreferrer">documentation</a> but there is nothing about it.
  Please help.</p>