@Mojo(name="helpmojo", defaultPhase=GENERATE_SOURCES, threadSafe=true, requiresDependencyResolution=COMPILE) public class HelpGeneratorMojo extends AbstractGeneratorMojo
HelpMojo
class.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
helpPackageName
The name of the package for the generated
HelpMojo . |
protected java.io.File |
outputDirectory
The directory where the generated
HelpMojo file will be put. |
private org.codehaus.plexus.velocity.VelocityComponent |
velocity
Velocity component.
|
dependencies, encoding, extractors, goalPrefix, local, mojoScanner, packagingTypes, project, remoteRepos, skip, skipErrorNoDescriptorsFound
Constructor and Description |
---|
HelpGeneratorMojo() |
Modifier and Type | Method and Description |
---|---|
protected Generator |
createGenerator() |
void |
execute() |
protected java.io.File |
getOutputDirectory() |
@Parameter(defaultValue="${project.build.directory}/generated-sources/plugin") protected java.io.File outputDirectory
HelpMojo
file will be put.@Parameter private java.lang.String helpPackageName
HelpMojo
. By default, the package will be calculated based
on the packages of the other plugin goals.@Component private org.codehaus.plexus.velocity.VelocityComponent velocity
protected java.io.File getOutputDirectory()
getOutputDirectory
in class AbstractGeneratorMojo
protected Generator createGenerator()
createGenerator
in class AbstractGeneratorMojo
Generator
implementation.public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractGeneratorMojo
org.apache.maven.plugin.MojoExecutionException