Plugin Documentation

Goals available for this plugin:

GoalDescription
ant:run

Maven Ant Mojo. Allows Maven to invoke a target inside an Ant build file. The build file can be located on the file system, the ant-maven-plugin classpath, or any resource URL that Spring 3.0 can understand.

By default, this mojo makes the following available to Ant build files as both properties and references:

maven.compile.classpath=The classpath Maven is using for compilation
maven.runtime.classpath=The classpath Maven is using at runtime
maven.test.classpath=The classpath Maven is using for testing
maven.plugin.classpath=The classpath for the ant-maven-plugin

These are available as Ant references:

maven.project=MavenProject
maven.project.helper=MavenProjectHelper
maven.local.repository=ArtifactRepository

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.0
JDK1.6
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.kuali.maven.plugins</groupId>
          <artifactId>ant-maven-plugin</artifactId>
          <version>1.0.6</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.kuali.maven.plugins</groupId>
        <artifactId>ant-maven-plugin</artifactId>
        <version>1.0.6</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"