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
Fields Modifier and Type Field Description protected java.lang.String
goalPrefix
The goal prefix that will appear before the ":".protected static java.lang.String
LS
System/OS line separator: used to format console messages.private java.util.List<java.lang.String>
packagingTypes
Maven plugin packaging types.protected org.apache.maven.project.MavenProject
project
The project currently being built.private boolean
skip
Set this to "true" to skip invoking any goals or reports of the plugin.
-
Constructor Summary
Constructors Constructor Description AbstractGeneratorMojo()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute()
protected abstract void
generate()
(package private) static java.lang.String
getDefaultGoalPrefix(org.apache.maven.project.MavenProject project)
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
The project currently being built.
-
goalPrefix
@Parameter protected java.lang.String goalPrefix
The goal prefix that will appear before the ":".
-
skip
@Parameter(defaultValue="false", property="maven.plugin.skip") private boolean skip
Set this to "true" to skip invoking any goals or reports of the plugin.- Since:
- 2.8
-
packagingTypes
@Parameter private java.util.List<java.lang.String> packagingTypes
Maven plugin packaging types. Default is single "maven-plugin".- Since:
- 3.3
-
LS
protected static final java.lang.String LS
System/OS line separator: used to format console messages.
-
-
Method Detail
-
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
static java.lang.String getDefaultGoalPrefix(org.apache.maven.project.MavenProject project)
-
-