title: How to get Jenkins to --fail-fast on Maven 2 builds?
body: <p>I am trying to build a multi-module Maven project using Jenkins.</p>
  
  <p>When I build the same project on the <strong>command-line</strong> using the <strong>same environment</strong> (variables/settings.xml/user) as Jenkins does, test failures cause the build to fail immediately:</p>
  
  <pre><code>Failed tests:
    testSomething(com.package_name.TestSomethingOrTheOther)
  
  Tests run: .., Failures: 1, Errors: 0, Skipped: 0
  
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] There are test failures.
  ...
  # Build fails immediately
  </code></pre>
  
  <p>Where-as when building in <strong>Jenkins</strong>:</p>
  
  <pre><code>Failed tests:
    testSomething(com.package_name.TestSomethingOrTheOther)
  
  Tests run: .., Failures: 1, Errors: 0, Skipped: 0
  
  [ERROR] There are test failures.
  ...
  # Build continues to other modules
  ...
  [INFO] Reactor Summary:
  [INFO] ------------------------------------------------------------------------
  [INFO] parent ................................................ SUCCESS [.....s]
  [INFO] module-that-failed .................................... SUCCESS [.....s]
  [INFO] ------------------------------------------------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESSFUL
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>The build states that all modules and parent are <strong>SUCCESS</strong>-ful, when in reality, these should be failures.</p>
  
  <p><strong>How do I get Jenkins to enforce fail-fast in maven builds as maven does in the command-line?</strong></p>
  
  <p>Thanks in advance.</p>