title: Fail maven build when maven-antrun-plugin failed
body: <p>I'm running an Ant task that runs a junit test from within maven, using maven-antrun-plugin. The invocation looks like this:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;id&gt;ant-test&lt;/id&gt;
        &lt;phase&gt;test&lt;/phase&gt;
        &lt;goals&gt;
          &lt;goal&gt;run&lt;/goal&gt;
        &lt;/goals&gt;
        &lt;configuration&gt;
          &lt;tasks unless="maven.test.skip"&gt;
            &lt;ant antfile="${basedir}/build.xml" target="test"&gt;
              &lt;property name="build.compiler" value="extJavac" /&gt;
            &lt;/ant&gt;
          &lt;/tasks&gt;
        &lt;/configuration&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  &lt;/plugin&gt;  
  </code></pre>
  
  <p>When the tests fail, the build continues and reports success. I tried to reproduce this behaviour with ant only (running Ant from command line 'ant -f example.xml'):</p>
  
  <pre><code>&lt;project name="example" basedir="." default="aa"&gt;
  &lt;target name="aa"&gt;
    &lt;ant antfile="build.xml" target="test" /&gt;
  &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>but in this case everything is as expected: first test failure stops the build and reports it was unsuccessful. It looks like maven does some magic (or invokes ant in another way).</p>
  
  <p>So my question if how to achieve the effect of failing maven build when antrun test task fail.</p>