o Updated mojo annotations

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@649635 13f79535-47bb-0310-9956-ffa450edef68
master
Benjamin Bentmann 2008-04-18 18:04:33 +00:00
parent 1960c7639a
commit 5bdef47928
7 changed files with 11 additions and 9 deletions

View File

@ -45,13 +45,14 @@ public abstract class AbstractGeneratorMojo
* *
* @parameter expression="${project}" * @parameter expression="${project}"
* @required * @required
* @readonly
*/ */
protected MavenProject project; protected MavenProject project;
/** /**
* The component used for scanning the source tree for mojos. * The component used for scanning the source tree for mojos.
* *
* @parameter expression="${component.org.apache.maven.tools.plugin.scanner.MojoScanner}" * @component
* @required * @required
*/ */
protected MojoScanner mojoScanner; protected MojoScanner mojoScanner;

View File

@ -31,6 +31,7 @@ import java.io.File;
* *
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a> * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id$ * @version $Id$
* @since 2.0
* @goal descriptor * @goal descriptor
* @phase generate-resources * @phase generate-resources
* @requiresDependencyResolution runtime * @requiresDependencyResolution runtime
@ -41,8 +42,7 @@ public class DescriptorGeneratorMojo
/** /**
* The directory where the generated plugin.xml file will be put. * The directory where the generated plugin.xml file will be put.
* *
* @parameter expression="${project.build.outputDirectory}/META-INF/maven" * @parameter default-value="${project.build.outputDirectory}/META-INF/maven"
* @required
*/ */
protected File outputDirectory; protected File outputDirectory;

View File

@ -40,8 +40,7 @@ public class HelpGeneratorMojo
/** /**
* The directory where the generated <code>HelpMojo</code> file will be put. * The directory where the generated <code>HelpMojo</code> file will be put.
* *
* @parameter expression="${project.build.directory}/generated-sources/plugin" * @parameter default-value="${project.build.directory}/generated-sources/plugin"
* @required
*/ */
protected File outputDirectory; protected File outputDirectory;

View File

@ -50,6 +50,7 @@ import org.codehaus.plexus.util.xml.Xpp3Dom;
* @author <a href="snicoll@apache.org">Stephane Nicoll</a> * @author <a href="snicoll@apache.org">Stephane Nicoll</a>
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a> * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
* @version $Id$ * @version $Id$
* @since 2.0
* @goal report * @goal report
* @execute phase="compile" * @execute phase="compile"
*/ */
@ -59,8 +60,7 @@ public class PluginReport
/** /**
* Report output directory. * Report output directory.
* *
* @parameter expression="${project.build.directory}/generated-site/xdoc" * @parameter default-value="${project.build.directory}/generated-site/xdoc"
* @required
*/ */
private String outputDirectory; private String outputDirectory;

View File

@ -42,6 +42,7 @@ import java.util.Date;
/** /**
* Update the user plugin registry (if it's in use) to reflect the version we're installing. * Update the user plugin registry (if it's in use) to reflect the version we're installing.
* *
* @since 2.0
* @goal updateRegistry * @goal updateRegistry
* @phase install * @phase install
* @version $Id$ * @version $Id$

View File

@ -29,6 +29,7 @@ import java.io.File;
* *
* @author <a href="mailto:brett@apache.org">Brett Porter</a> * @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @version $Id$ * @version $Id$
* @since 2.0
* @goal xdoc * @goal xdoc
*/ */
public class XdocGeneratorMojo public class XdocGeneratorMojo
@ -37,8 +38,7 @@ public class XdocGeneratorMojo
/** /**
* The directory where the generated Xdoc files will be put. * The directory where the generated Xdoc files will be put.
* *
* @parameter expression="${project.build.directory}/generated-site/xdoc" * @parameter default-value="${project.build.directory}/generated-site/xdoc"
* @required
*/ */
protected File outputDirectory; protected File outputDirectory;

View File

@ -33,6 +33,7 @@ import org.apache.maven.project.MavenProject;
* and deployment. The first use-case for this is to add the LATEST metadata (which is plugin-specific) * and deployment. The first use-case for this is to add the LATEST metadata (which is plugin-specific)
* for shipping alongside the plugin's artifact. * for shipping alongside the plugin's artifact.
* *
* @since 2.0
* @phase package * @phase package
* @goal addPluginArtifactMetadata * @goal addPluginArtifactMetadata
*/ */