antrun:run

Full name:

org.apache.maven.plugins:maven-antrun-plugin:1.2:run

Description:

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

Attributes:

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

Optional Parameters

Name Type Since 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}