antrun:run

Full name:

org.apache.maven.plugins:maven-antrun-plugin:1.4: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.
  • The goal is thread-safe and supports parallel builds.

Optional Parameters

Name Type Since Description
propertyPrefix String - String to prepend to project and dependency property names.
sourceRoot File - Deprecated. Use the build-helper-maven-plugin to bind source directories
taskNamespace String - The xml namespace to use for the built in Ant tasks.
Default value is: mvn.
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 - Deprecated. Use the build-helper-maven-plugin to bind test source directories
versionsPropertyName String - The name of a property containing the list of all dependency versions. This is used for the removing the versions from the filenames.
Default value is: maven.project.dependencies.versions.

Parameter Details

propertyPrefix:

String to prepend to project and dependency property names.
  • Type: java.lang.String
  • Required: No

sourceRoot:

Deprecated. Use the build-helper-maven-plugin to bind source directories
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}

taskNamespace:

The xml namespace to use for the built in Ant tasks.
  • Type: java.lang.String
  • Required: No
  • Default: mvn

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:

Deprecated. Use the build-helper-maven-plugin to bind test source directories
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}

versionsPropertyName:

The name of a property containing the list of all dependency versions. This is used for the removing the versions from the filenames.
  • Type: java.lang.String
  • Required: No
  • Default: maven.project.dependencies.versions