Class AbstractGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.plugin.AbstractGeneratorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
DescriptorGeneratorMojo, HelpGeneratorMojo
public abstract class AbstractGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract class for this Plugin.
- Author:
- Jason van Zyl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe goal prefix that will appear before the ":".protected static final StringSystem/OS line separator: used to format console messages.protected final org.apache.maven.project.MavenProjectThe project currently being built.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGeneratorMojo(org.apache.maven.project.MavenProject project) -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
goalPrefix
The goal prefix that will appear before the ":". -
LS
System/OS line separator: used to format console messages. -
project
protected final org.apache.maven.project.MavenProject projectThe project currently being built.
-
-
Constructor Details
-
AbstractGeneratorMojo
protected AbstractGeneratorMojo(org.apache.maven.project.MavenProject project)
-
-
Method Details
-
generate
protected abstract void generate() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-