org.apache.maven.plugin.plugin
Class DescriptorGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.plugin.AbstractGeneratorMojo
org.apache.maven.plugin.plugin.DescriptorGeneratorMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class DescriptorGeneratorMojo
- extends AbstractGeneratorMojo
Generate a plugin descriptor.
Note: Since 3.0, phase
is after the "compilation" of any scripts.
- Since:
- 2.0
- Version:
- $Id: DescriptorGeneratorMojo.java 1337808 2012-05-13 08:29:05Z hboutemy $
- Author:
- Jason van Zyl
- Is defined by the goal name:
- descriptor
- Is bound to the specified phase of the standard build lifecycle:
- process-classes
- Requires the dependencies in this specified scope:
- runtime
Field Summary |
protected File |
outputDirectory
The directory where the generated plugin.xml file will be put. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputDirectory
protected File outputDirectory
- The directory where the generated
plugin.xml
file will be put.
- Is defined by:
- default-value:
- ${project.build.outputDirectory}/META-INF/maven
DescriptorGeneratorMojo
public DescriptorGeneratorMojo()
getOutputDirectory
protected File getOutputDirectory()
-
- Specified by:
getOutputDirectory
in class AbstractGeneratorMojo
- Returns:
- the output directory where files will be generated.
createGenerator
protected Generator createGenerator()
-
- Specified by:
createGenerator
in class AbstractGeneratorMojo
- Returns:
- the wanted
Generator
implementation.
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
-
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Overrides:
execute
in class AbstractGeneratorMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.