antrun:run

Maven AntRun Mojo. This plugin provides the capability of calling ant tasks from a POM by runing the nested ant tasks inside the <task/> parameter. It is encouraged to move the actual tasks to a separate build.xml file and call that file with an <ant/> task.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: test

Optional Parameters

Name Type Description
sourceRoot File This folder is added to the list of those folders containing source to be compiled. Use this if your ant script generates source code.
tasks Target The XML for the Ant task. You can add anything you can add between <target> and </target> in a build.xml.
testSourceRoot File This folder is added to the list of those folders containing source to be compiled for testing. Use this if your ant script generates test source code.

Parameter Details

sourceRoot

This folder is added to the list of those folders containing source to be compiled. Use this if your ant script generates source code.

  • Type: java.io.File
  • Required: No
  • Expression: ${sourceRoot}

tasks The XML for the Ant task. You can add anything you can add between <target> and </target> in a build.xml.
  • Type: org.apache.tools.ant.Target
  • Required: No
  • Expression: ${tasks}

testSourceRoot This folder is added to the list of those folders containing source to be compiled for testing. Use this if your ant script generates test source code.
  • Type: java.io.File
  • Required: No
  • Expression: ${testSourceRoot}