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
-
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractGenerateMojo
public AbstractGenerateMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute the plugin and generate sources.- Throws:
org.apache.maven.plugin.MojoExecutionException
- if execution fails.org.apache.maven.plugin.MojoFailureException
- if an error occurs.
-