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.- Author:
- Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description protected String
goalPrefix
The goal prefix that will appear before the ":".protected static String
LS
System/OS line separator: used to format console messages.protected org.apache.maven.project.MavenProject
project
The project currently being built.
-
Constructor Summary
Constructors Constructor Description AbstractGeneratorMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute()
protected abstract void
generate()
-
-
-
Field Detail
-
project
@Component protected org.apache.maven.project.MavenProject project
The project currently being built.
-
goalPrefix
@Parameter protected String goalPrefix
The goal prefix that will appear before the ":".
-
-
Constructor Detail
-
AbstractGeneratorMojo
public AbstractGeneratorMojo()
-
-
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
-
-