fixed documentation for latests changes (DependencyScope -> ResolutionScope, expression -> property, removal of readonly and required from Component)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339889 13f79535-47bb-0310-9956-ffa450edef68master
parent
092e4267b0
commit
3bf23ba831
|
|
@ -36,7 +36,7 @@ Maven Plugin Tool for Annotations
|
||||||
|
|
||||||
+---------+
|
+---------+
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
import org.apache.maven.plugins.annotations.DependencyScope;
|
import org.apache.maven.plugins.annotations.ResolutionScope;
|
||||||
import org.apache.maven.plugins.annotations.Component;
|
import org.apache.maven.plugins.annotations.Component;
|
||||||
import org.apache.maven.plugins.annotations.Execute;
|
import org.apache.maven.plugins.annotations.Execute;
|
||||||
import org.apache.maven.plugins.annotations.InstanciationStrategy;
|
import org.apache.maven.plugins.annotations.InstanciationStrategy;
|
||||||
|
|
@ -56,8 +56,8 @@ import org.apache.maven.plugins.annotations.Parameter;
|
||||||
inheritByDefault = <true|false>,
|
inheritByDefault = <true|false>,
|
||||||
instantiationStrategy = InstanciationStrategy.<strategy>,
|
instantiationStrategy = InstanciationStrategy.<strategy>,
|
||||||
defaultPhase = "<phaseName>",
|
defaultPhase = "<phaseName>",
|
||||||
requiresDependencyResolution = DependencyScope.<scope>,
|
requiresDependencyResolution = ResolutionScope.<scope>,
|
||||||
requiresDependencyCollection = DependencyScope.<scope>, // (since Maven 3.0)
|
requiresDependencyCollection = ResolutionScope.<scope>, // (since Maven 3.0)
|
||||||
requiresDirectInvocation = <false|true>,
|
requiresDirectInvocation = <false|true>,
|
||||||
requiresOnline = <false|true>,
|
requiresOnline = <false|true>,
|
||||||
requiresProject = <true|false>,
|
requiresProject = <true|false>,
|
||||||
|
|
@ -74,7 +74,7 @@ public class MyMojo
|
||||||
* @deprecated <deprecated-text>
|
* @deprecated <deprecated-text>
|
||||||
*/
|
*/
|
||||||
@Parameter( alias = "myAlias",
|
@Parameter( alias = "myAlias",
|
||||||
expression = "aSystemProperty",
|
property = "aProperty",
|
||||||
defaultValue = "${anExpression}",
|
defaultValue = "${anExpression}",
|
||||||
readonly = <false|true>
|
readonly = <false|true>
|
||||||
required = <false|true> )
|
required = <false|true> )
|
||||||
|
|
@ -86,8 +86,6 @@ public class MyMojo
|
||||||
*/
|
*/
|
||||||
@Component( role = "...",
|
@Component( role = "...",
|
||||||
roleHint="..." )
|
roleHint="..." )
|
||||||
// @readonly
|
|
||||||
// @required
|
|
||||||
private MyComponent component;
|
private MyComponent component;
|
||||||
|
|
||||||
public void execute()
|
public void execute()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue