Class HelpGeneratorMojo

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

Generates a HelpMojo class.
Since:
2.4
  • Field Details

    • outputDirectory

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

      @Parameter private String helpPackageName
      The name of the package for the generated HelpMojo. By default, the package will be calculated based on the packages of the other plugin goals.
      Since:
      2.6
  • Constructor Details

    • HelpGeneratorMojo

      public HelpGeneratorMojo()
  • Method Details

    • getOutputDirectory

      protected File getOutputDirectory()
      Specified by:
      getOutputDirectory in class AbstractGeneratorMojo
      Returns:
      the output directory where files will be generated.
    • createGenerator

      protected 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