title: How to call ant task to process webapp files after "copying webapp resources" and before "building war" steps in package phase?
body: <p>I'm migrating from ant to maven. However I have a custom build functionality for process web resources that I don't want to adapt yet to maven (the cost is very high) so I'm using ant run plugin. </p>
  
  <p>I want to process some of the resource files calling the ant task. This needs to
  happen after the "copying webapp resources" step and before the "building war" steps within the phase package.</p>
  
  <p>When I run my ant task, with the phase being "package"</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.6&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;tasks&gt;
                              &lt;ant antfile="${basedir}/build-resources.xml"&gt;
                                   &lt;property name="runtime-classpath" refid="maven.runtime.classpath"/&gt;
                              &lt;/ant&gt;
                          &lt;/tasks&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;   
  </code></pre>
  
  <p>I can accomplish mychanges to the files under the <code>target/myapp-webapp</code> folder. However, since
  <code>myapp-webapp.war</code> is built before the ant task is run, these changes are not
  getting to be a part of that war file. </p>
  
  <p>Is there a way to accomplish this?</p>