Using generated Ant build files

Note : You should update the build.xml and NOT the maven-build.xml .

The build.xml uses the import task of Ant. So, you could overwrite generated targets in the build.xml . For instance:

<?xml version="1.0" encoding="UTF-8"?>

<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
<!-- ====================================================================== -->

<project name="%PROJECT_ARTIFACTID%" default="jar" basedir=".">

  <!-- ====================================================================== -->
  <!-- Import maven-build.xml into the current project                        -->
  <!-- ====================================================================== -->

  <import file="maven-build.xml"/>

  <!-- ====================================================================== -->
  <!-- Help target                                                            -->
  <!-- ====================================================================== -->

  <target name="help">
    <echo message="Please run: $ant -projecthelp"/>
  </target>

  <!-- ====================================================================== -->
  <!-- Overwrite the jar target from maven-build.xml                          -->
  <!-- ====================================================================== -->

  <target name="jar">
    <echo message="Nothing to do."/>
  </target>
</project>