Package org.apache.maven.plugin.plugin
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The goal prefix that will appear before the ":".protected static final String
System/OS line separator: used to format console messages.Maven plugin packaging types.protected org.apache.maven.project.MavenProject
The project currently being built.private boolean
Set this to "true" to skip invoking any goals or reports of the plugin.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
protected abstract void
generate()
(package private) static String
getDefaultGoalPrefix
(org.apache.maven.project.MavenProject project) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Component protected org.apache.maven.project.MavenProject projectThe project currently being built. -
goalPrefix
The goal prefix that will appear before the ":". -
skip
@Parameter(defaultValue="false", property="maven.plugin.skip") private boolean skipSet this to "true" to skip invoking any goals or reports of the plugin.- Since:
- 2.8
-
packagingTypes
Maven plugin packaging types. Default is single "maven-plugin".- Since:
- 3.3
-
LS
System/OS line separator: used to format console messages.
-
-
Constructor Details
-
AbstractGeneratorMojo
public AbstractGeneratorMojo()
-
-
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
-
getDefaultGoalPrefix
-