title: How to run findbugs automatically in maven on install
body: <p>It's easy to add the <a href="http://mojo.codehaus.org/findbugs-maven-plugin/2.0.1/usage.html" rel="noreferrer">findbugs plugin</a> to maven so that it will run if I do</p>
  
  <pre><code>mvn site
  </code></pre>
  
  <p>However, I would like it to run whenever I do</p>
  
  <pre><code>mvn install
  </code></pre>
  
  <p>just like unit tests. That is, I don't want the install to succeed if findbugs finds any bugs. Is there are way for me to do this?</p>