o fixed role as Class<?> type

o improved examples

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341647 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2012-05-22 21:35:43 +00:00
parent e5f2c4746d
commit b3be96af8e
1 changed files with 10 additions and 10 deletions

View File

@ -45,17 +45,17 @@ import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
/**
* Mojo Description. @Mojo( name = "<goalName>" ) is the minimal required annotation.
* Mojo Description. @Mojo( name = "<goal-name>" ) is the minimal required annotation.
* @since <since-text>
* @deprecated <deprecated-text>
*/
@Mojo( name = "<goalName>",
@Mojo( name = "<goal-name>",
aggregator = <false|true>,
configurator = "<roleHint>",
configurator = "<role hint>",
executionStrategy = "<once-per-session|always>",
inheritByDefault = <true|false>,
instantiationStrategy = InstanciationStrategy.<strategy>,
defaultPhase = "<phaseName>",
defaultPhase = "<phase-name>",
requiresDependencyResolution = ResolutionScope.<scope>,
requiresDependencyCollection = ResolutionScope.<scope>, // (since Maven 3.0)
requiresDirectInvocation = <false|true>,
@ -63,9 +63,9 @@ import org.apache.maven.plugins.annotations.Parameter;
requiresProject = <true|false>,
requiresReports = <false|true>, // (unsupported since Maven 3.0)
threadSafe = <false|true> ) // (since Maven 3.0)
@Execute( goal = "<goalName>",
@Execute( goal = "<goal-name>",
phase = LifecyclePhase.<phase>
lifecycle = "<lifecycleId>" )
lifecycle = "<lifecycle-id>" )
public class MyMojo
extends AbstractMojo
{
@ -74,8 +74,8 @@ public class MyMojo
* @deprecated <deprecated-text>
*/
@Parameter( alias = "myAlias",
property = "aProperty",
defaultValue = "${anExpression}",
property = "a.property",
defaultValue = "an expression with ${variables} eventually",
readonly = <false|true>
required = <false|true> )
private String parameter;
@ -84,7 +84,7 @@ public class MyMojo
* @since <since-text>
* @deprecated <deprecated-text>
*/
@Component( role = "...",
@Component( role = MyComponentExtension.class,
roleHint = "..." )
private MyComponent component;