You can use maven-antrun-plugin http://maven.apache.org/plugins/maven-antrun-plugin/
so you could use a command line like that mvn antrun:run
where run is a goal define by you in the pom.xml
With this plugin you can use a mix of "maven-ant" and also call ant files in maven. Use it carefuly because your project configuration could be a real mess.
A simple example used on my project to replace properties in different files
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- #1 : call antrun to merge projet with convinient conf files -->
<execution>
<id>replace</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant antfile="replace.xml"/>
</tasks>
</configuration>
</execution>
<!-- #2 : call antrun to explode war created in target directory-->
<execution>
<id>unwar</id>
<phase>install</phase>
<configuration>
<tasks>
<!-- add conf folder (was ignored during war creation) -->
<copy todir="./target/${project.artifactId}-${project.version}/conf">
<fileset dir="./conf"/>
</copy>
<!-- rebuild war with conf folder newly added -->
<delete>
<fileset dir="./target">
<include name="${project.artifactId}-${project.version}.war"/>
</fileset>
</delete>
<war basedir="./target/${project.artifactId}-${project.version}" destfile="./target/${project.artifactId}-${project.version}.war" webxml="./target/${project.artifactId}-${project.version}/WEB-INF/web.xml"/>
<!-- copy war and exploded webapp-->
<copy todir="./${project.artifactId}/${project.version}/${project.artifactId}-${project.version}">
<fileset dir="./target/${project.artifactId}-${project.version}"/>
</copy>
<copy file="./target/${project.artifactId}-${project.version}.war" todir="/devef/maven/repository/fr/as/galilei/${project.artifactId}/${project.version}"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
</plugin>