Class HelpGeneratorMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="helpmojo",
          defaultPhase=GENERATE_SOURCES,
          threadSafe=true,
          requiresDependencyResolution=COMPILE)
    public class HelpGeneratorMojo
    extends AbstractGeneratorMojo
    Generates a HelpMojo class.
    Since:
    2.4
    Author:
    Vincent Siveton
    • Field Detail

      • outputDirectory

        @Parameter(defaultValue="${project.build.directory}/generated-sources/plugin")
        protected File outputDirectory
        The directory where the generated HelpMojo file will be put.
    • Constructor Detail

      • HelpGeneratorMojo

        public HelpGeneratorMojo()
    • Method Detail

      • createGenerator

        protected org.apache.maven.tools.plugin.generator.Generator createGenerator()
        Specified by:
        createGenerator in class AbstractGeneratorMojo
        Returns:
        the wanted Generator implementation.
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractGeneratorMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException