title: Maven Ant run something at the end of the build
body: <p>I have a Maven parent project that has 6 modules, each module generates a specific artifact that is copied somewhere, when all the modules are built I want to be able to run an ant task that commits and pushes these artifacts into its GIT repository. Any idea how this could be achieved inside Maven? Currently I run Maven from Ant and then I run the GIT Commit/Push task.</p>
  
  <p>Thanks!</p>
  
  <p>Johann</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;Group&lt;/groupId&gt;
      &lt;artifactId&gt;Parent&lt;/artifactId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
      &lt;modules&gt;
          &lt;module&gt;ModuleUtil&lt;/module&gt;
          &lt;module&gt;ModuleDomain&lt;/module&gt;
          &lt;module&gt;ModuleData&lt;/module&gt;
          &lt;module&gt;ModuleUi&lt;/module&gt;
          &lt;module&gt;ModuleAsync&lt;/module&gt;
          &lt;module&gt;ModuleBatch&lt;/module&gt;
          &lt;!-- At this stage I would like to run something --&gt;
      &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>