public abstract class AbstractGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding
The file encoding of the source files.
|
protected Set |
extractors
The role names of mojo extractors to use.
|
protected String |
goalPrefix
The goal prefix that will appear before the ":".
|
protected MojoScanner |
mojoScanner
The component used for scanning the source tree for mojos.
|
protected org.apache.maven.project.MavenProject |
project
The project currently being built.
|
| Constructor and Description |
|---|
AbstractGeneratorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Generator |
createGenerator() |
void |
execute() |
protected abstract File |
getOutputDirectory() |
protected org.apache.maven.project.MavenProject project
protected MojoScanner mojoScanner
protected String encoding
protected String goalPrefix
protected Set extractors
<!-- Use all mojo extractors -->
<extractors/>
<!-- Use no mojo extractors -->
<extractors>
<extractor/>
</extractors>
<!-- Use only bsh mojo extractor -->
<extractors>
<extractor>bsh</extractor>
</extractors>
protected abstract File getOutputDirectory()
protected abstract Generator createGenerator()
Generator implementation.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2004-2012 Apache Software Foundation. All Rights Reserved.