Package org.apache.maven.plugin.plugin
Class HelpGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugin.plugin.AbstractGeneratorMojo
-
- org.apache.maven.plugin.plugin.HelpGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="helpmojo", defaultPhase=GENERATE_SOURCES, threadSafe=true, requiresDependencyResolution=COMPILE) public class HelpGeneratorMojo extends AbstractGeneratorMojo
Generates aHelpMojo
class. Relies at runtime on one output file fromDescriptorGeneratorMojo
.- Since:
- 2.4
- Author:
- Vincent Siveton
-
-
Field Summary
Fields Modifier and Type Field Description protected File
outputDirectory
The directory where the generatedHelpMojo
file will be put.-
Fields inherited from class org.apache.maven.plugin.plugin.AbstractGeneratorMojo
goalPrefix, LS, project
-
-
Constructor Summary
Constructors Constructor Description HelpGeneratorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generate()
-
Methods inherited from class org.apache.maven.plugin.plugin.AbstractGeneratorMojo
execute
-
-
-
-
Field Detail
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/plugin") protected File outputDirectory
The directory where the generatedHelpMojo
file will be put.
-
-
Constructor Detail
-
HelpGeneratorMojo
public HelpGeneratorMojo()
-
-
Method Detail
-
generate
protected void generate() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
generate
in classAbstractGeneratorMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-