Class AbstractGenerateMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.github.ascopes.protobufmavenplugin.mojo.AbstractGenerateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
MainGenerateMojo, TestGenerateMojo

public abstract class AbstractGenerateMojo extends org.apache.maven.plugin.AbstractMojo
Abstract base for a code generation Mojo that calls protoc.
Author:
Ashley Scopes
  • Field Summary

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Execute the plugin and generate sources.

    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
  • Constructor Details

    • AbstractGenerateMojo

      public AbstractGenerateMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Execute the plugin and generate sources.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if execution fails.
      org.apache.maven.plugin.MojoFailureException - if an error occurs.