Class AdocGeneratorMojo

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

    @Mojo(name="asciidoc-descriptor",
          defaultPhase=PROCESS_CLASSES,
          threadSafe=true,
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
    public class AdocGeneratorMojo
    extends org.apache.maven.plugin.plugin.AbstractGeneratorMojo
    Generates a AdocMojo class.
    Author:
    Emmanuel Hugonnet (c) 2018 Red Hat, inc.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected File outputDirectory
      The directory where the generated HelpMojo file will be put.
      • Fields inherited from class org.apache.maven.plugin.plugin.AbstractGeneratorMojo

        buildContext, encoding, extractors, goalPrefix, local, mojoScanner, packagingTypes, project, remoteRepos, skip, skipErrorNoDescriptorsFound
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • 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

      • AdocGeneratorMojo

        public AdocGeneratorMojo()
    • Method Detail

      • getOutputDirectory

        protected File getOutputDirectory()
        Specified by:
        getOutputDirectory in class org.apache.maven.plugin.plugin.AbstractGeneratorMojo
      • createGenerator

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

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