ant:run

Full name:

org.kuali.maven.plugins:ant-maven-plugin:1.0.0-SNAPSHOT:run

Description:

Maven Ant Mojo. This plugin allows Maven to invoke Ant tasks. Specify any Ant build.xml file available on the file system, classpath, (or any other URL location supported by Spring style resource loading) and specify a target inside the file to invoke

Attributes:

  • Requires a Maven 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
customTaskPrefix String - The xml tag prefix to use for the built in Ant tasks. This prefix needs to be prepended to each task referenced in the antrun target config. For example, a prefix of "mvn" means that the attachartifact task is referenced by "<mvn:attachartifact>" The default value of an empty string means that no prefix is used for the tasks.
exportAntProperties boolean - Specifies whether the Ant properties should be propagated to the Maven properties.
Default value is: false.
failOnError boolean - Specifies whether a failure in the ant build leads to a failure of the Maven build. If this value is 'true', the Maven build will proceed even if the ant build fails. If it is 'false', then the Maven build fails if the ant build fails.
Default value is: true.
location String - The location of the Ant build.xml file. This can be a file on the file system, a file on the classpath, or any URL that Spring's resource loading can understand
Default value is: classpath:build.xml.
propertyPrefix String - String to prepend to project and dependency property names.
skip boolean - Specifies whether the Ant execution should be skipped.
Default value is: false.
target String - The target inside of the build.xml file to invoke
Default value is: main.
tmpDir String - This is the temporary working directory for the plugin. It copies the build.xml file here and creates a build wrapper here.
Default value is: ${project.build.directory}/ant.
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

customTaskPrefix:

The xml tag prefix to use for the built in Ant tasks. This prefix needs to be prepended to each task referenced in the antrun target config. For example, a prefix of "mvn" means that the attachartifact task is referenced by "<mvn:attachartifact>" The default value of an empty string means that no prefix is used for the tasks.
  • Type: java.lang.String
  • Required: No
  • Expression: ${ant.customTaskPrefix}

exportAntProperties:

Specifies whether the Ant properties should be propagated to the Maven properties.
  • Type: boolean
  • Required: No
  • Expression: ${ant.exportAntProperties}
  • Default: false

failOnError:

Specifies whether a failure in the ant build leads to a failure of the Maven build. If this value is 'true', the Maven build will proceed even if the ant build fails. If it is 'false', then the Maven build fails if the ant build fails.
  • Type: boolean
  • Required: No
  • Expression: ${ant.failOnError}
  • Default: true

location:

The location of the Ant build.xml file. This can be a file on the file system, a file on the classpath, or any URL that Spring's resource loading can understand
  • Type: java.lang.String
  • Required: No
  • Expression: ${ant.location}
  • Default: classpath:build.xml

propertyPrefix:

String to prepend to project and dependency property names.
  • Type: java.lang.String
  • Required: No
  • Expression: ${ant.propertyPrefix}

skip:

Specifies whether the Ant execution should be skipped.
  • Type: boolean
  • Required: No
  • Expression: ${ant.skip}
  • Default: false

target:

The target inside of the build.xml file to invoke
  • Type: java.lang.String
  • Required: No
  • Expression: ${ant.target}
  • Default: main

tmpDir:

This is the temporary working directory for the plugin. It copies the build.xml file here and creates a build wrapper here.
  • Type: java.lang.String
  • Required: No
  • Expression: ${ant.tmpDir}
  • Default: ${project.build.directory}/ant

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
  • Expression: ${ant.versionsPropertyName}
  • Default: maven.project.dependencies.versions