public abstract class AbstractGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<org.apache.maven.artifact.Artifact> |
dependencies
The set of dependencies for the current project
|
protected java.lang.String |
encoding
The file encoding of the source files.
|
protected java.util.Set<java.lang.String> |
extractors
The role names of mojo extractors to use.
|
protected java.lang.String |
goalPrefix
The goal prefix that will appear before the ":".
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
local
Location of the local repository.
|
private java.util.List<java.lang.String> |
mojoDependencies
Specify the dependencies as
groupId:artifactId containing (abstract) Mojos. |
protected MojoScanner |
mojoScanner
The component used for scanning the source tree for mojos.
|
protected java.util.List<java.lang.String> |
packagingTypes
Maven plugin packaging types.
|
protected org.apache.maven.project.MavenProject |
project
The project currently being built.
|
protected java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepos
List of Remote Repositories used by the resolver
|
protected boolean |
skip
Set this to "true" to skip invoking any goals or reports of the plugin.
|
protected boolean |
skipErrorNoDescriptorsFound
By default an exception is throw if no mojo descriptor is found.
|
| Constructor and Description |
|---|
AbstractGeneratorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Generator |
createGenerator() |
void |
execute() |
protected abstract java.io.File |
getOutputDirectory() |
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
@Component protected MojoScanner mojoScanner
@Parameter(property="encoding", defaultValue="${project.build.sourceEncoding}") protected java.lang.String encoding
@Parameter protected java.lang.String goalPrefix
@Parameter(property="maven.plugin.skipErrorNoDescriptorsFound", defaultValue="false") protected boolean skipErrorNoDescriptorsFound
@Parameter protected java.util.Set<java.lang.String> extractors
<!-- Use all mojo extractors -->
<extractors/>
<!-- Use no mojo extractors -->
<extractors>
<extractor/>
</extractors>
<!-- Use only bsh mojo extractor -->
<extractors>
<extractor>bsh</extractor>
</extractors>
@Parameter(defaultValue="false", property="maven.plugin.skip") protected boolean skip
@Parameter(defaultValue="${project.artifacts}", required=true, readonly=true) protected java.util.Set<org.apache.maven.artifact.Artifact> dependencies
@Parameter private java.util.List<java.lang.String> mojoDependencies
groupId:artifactId containing (abstract) Mojos.
If not specified in the configuration, this is null and all dependencies are scanned.
If specified with no children, no dependencies are scanned.@Parameter(defaultValue="${project.remoteArtifactRepositories}", required=true, readonly=true) protected java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos
@Parameter(defaultValue="${localRepository}", required=true, readonly=true) protected org.apache.maven.artifact.repository.ArtifactRepository local
@Parameter protected java.util.List<java.lang.String> packagingTypes
protected abstract java.io.File getOutputDirectory()
protected abstract Generator createGenerator()
Generator implementation.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException