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 AbstractGeneratorMojoGenerates aHelpMojoclass.- Since:
- 2.4
- Author:
- Vincent Siveton
-
-
Field Summary
Fields Modifier and Type Field Description protected FileoutputDirectoryThe directory where the generatedHelpMojofile will be put.-
Fields inherited from class org.apache.maven.plugin.plugin.AbstractGeneratorMojo
dependencies, encoding, extractors, goalPrefix, local, mojoScanner, packagingTypes, project, remoteRepos, skip, skipErrorNoDescriptorsFound
-
-
Constructor Summary
Constructors Constructor Description HelpGeneratorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.maven.tools.plugin.generator.GeneratorcreateGenerator()voidexecute()protected FilegetOutputDirectory()
-
-
-
Field Detail
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/plugin") protected File outputDirectoryThe directory where the generatedHelpMojofile will be put.
-
-
Method Detail
-
getOutputDirectory
protected File getOutputDirectory()
- Specified by:
getOutputDirectoryin classAbstractGeneratorMojo- Returns:
- the output directory where files will be generated.
-
createGenerator
protected org.apache.maven.tools.plugin.generator.Generator createGenerator()
- Specified by:
createGeneratorin classAbstractGeneratorMojo- Returns:
- the wanted
Generatorimplementation.
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractGeneratorMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-