Class 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
      Factory for creating artifact objects.
      private org.apache.maven.artifact.repository.ArtifactRepository localRepository
      The local repository where the artifacts are located.
      private boolean overwrite
      Whether or not to overwrite the build.xml file.
      private org.apache.maven.project.MavenProject project
      The project to create a build for.
      private java.util.List remoteRepositories
      The remote repositories where artifacts are located.
      private org.apache.maven.artifact.resolver.ArtifactResolver resolver
      Used for resolving artifacts.
      private org.apache.maven.execution.MavenSession session
      The current Maven session.
      private org.apache.maven.settings.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
      AntMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      • 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 Detail

      • 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 java.util.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 Detail

      • AntMojo

        public AntMojo()
    • Method Detail

      • execute

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