Class AntMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.ant.AntMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="ant", requiresDependencyResolution=TEST) public class AntMojo extends org.apache.maven.plugin.AbstractMojo
Generate Ant build files.
Version:
$Id: AntMojo.java 1640228 2014-11-17 21:20:42Z hboutemy $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.maven.artifact.factory.ArtifactFactory
    Factory for creating artifact objects.
    private org.apache.maven.artifact.repository.ArtifactRepository
    The local repository where the artifacts are located.
    private boolean
    Whether or not to overwrite the build.xml file.
    private org.apache.maven.project.MavenProject
    The project to create a build for.
    private List
    The remote repositories where artifacts are located.
    private org.apache.maven.artifact.resolver.ArtifactResolver
    Used for resolving artifacts.
    private org.apache.maven.execution.MavenSession
    The current Maven session.
    private org.apache.maven.settings.Settings
    The current user system settings for use in Maven.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • resolver

      @Component private org.apache.maven.artifact.resolver.ArtifactResolver resolver
      Used for resolving artifacts.
    • factory

      @Component private org.apache.maven.artifact.factory.ArtifactFactory factory
      Factory for creating artifact objects.
    • project

      @Parameter(defaultValue="${project}", readonly=true, required=true) private org.apache.maven.project.MavenProject project
      The project to create a build for.
    • localRepository

      @Parameter(defaultValue="${localRepository}", required=true, readonly=true) private org.apache.maven.artifact.repository.ArtifactRepository localRepository
      The local repository where the artifacts are located.
    • remoteRepositories

      @Parameter(defaultValue="${project.remoteArtifactRepositories}", readonly=true) private List remoteRepositories
      The remote repositories where artifacts are located.
    • settings

      @Parameter(defaultValue="${settings}", readonly=true, required=true) private org.apache.maven.settings.Settings settings
      The current user system settings for use in Maven.
    • overwrite

      @Parameter(property="overwrite", defaultValue="false") private boolean overwrite
      Whether or not to overwrite the build.xml file.
    • session

      @Parameter(defaultValue="${session}", readonly=true, required=true) private org.apache.maven.execution.MavenSession session
      The current Maven session.
  • Constructor Details

    • AntMojo

      public AntMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException