[MPLUGIN-236] Value for Mojo's 'defaultPhase' parameter is incorrectly a string in examples
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1415161 13f79535-47bb-0310-9956-ffa450edef68master
parent
3bc4d86dba
commit
f67446b914
|
|
@ -122,5 +122,5 @@ Using Plugin Tools Java5 Annotations
|
||||||
*-------------------------------+---------------+
|
*-------------------------------+---------------+
|
||||||
| <<<@goal "goal-name">>> | <<<@Mojo( name = "goal-name" )>>>
|
| <<<@goal "goal-name">>> | <<<@Mojo( name = "goal-name" )>>>
|
||||||
*-------------------------------+---------------+
|
*-------------------------------+---------------+
|
||||||
| <<<@phase "\<phase-name\>">>> | <<<@Mojo( defaultPhase = "\<phase-name\>" )>>>
|
| <<<@phase "\<phase-name\>">>> | <<<@Mojo( defaultPhase = LifecyclePhase.\<phase\> )>>>
|
||||||
*-------------------------------+---------------+
|
*-------------------------------+---------------+
|
||||||
|
|
|
||||||
|
|
@ -39,13 +39,13 @@ import org.apache.maven.execution.MavenSession;
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
import org.apache.maven.plugin.MojoExecution;
|
import org.apache.maven.plugin.MojoExecution;
|
||||||
import org.apache.maven.plugin.descriptor.PluginDescriptor;
|
import org.apache.maven.plugin.descriptor.PluginDescriptor;
|
||||||
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.InstantiationStrategy;
|
import org.apache.maven.plugins.annotations.InstantiationStrategy;
|
||||||
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
import org.apache.maven.plugins.annotations.Parameter;
|
import org.apache.maven.plugins.annotations.Parameter;
|
||||||
|
import org.apache.maven.plugins.annotations.ResolutionScope;
|
||||||
import org.apache.maven.project.MavenProject;
|
import org.apache.maven.project.MavenProject;
|
||||||
import org.apache.maven.settings.Settings;
|
import org.apache.maven.settings.Settings;
|
||||||
|
|
||||||
|
|
@ -60,7 +60,7 @@ import org.apache.maven.settings.Settings;
|
||||||
executionStrategy = "<once-per-session|always>",
|
executionStrategy = "<once-per-session|always>",
|
||||||
inheritByDefault = <true|false>,
|
inheritByDefault = <true|false>,
|
||||||
instantiationStrategy = InstantiationStrategy.<strategy>,
|
instantiationStrategy = InstantiationStrategy.<strategy>,
|
||||||
defaultPhase = "<phase-name>",
|
defaultPhase = LifecyclePhase.<phase>,
|
||||||
requiresDependencyResolution = ResolutionScope.<scope>,
|
requiresDependencyResolution = ResolutionScope.<scope>,
|
||||||
requiresDependencyCollection = ResolutionScope.<scope>, // (since Maven 3.0)
|
requiresDependencyCollection = ResolutionScope.<scope>, // (since Maven 3.0)
|
||||||
requiresDirectInvocation = <false|true>,
|
requiresDirectInvocation = <false|true>,
|
||||||
|
|
@ -69,7 +69,7 @@ import org.apache.maven.settings.Settings;
|
||||||
requiresReports = <false|true>, // (unsupported since Maven 3.0)
|
requiresReports = <false|true>, // (unsupported since Maven 3.0)
|
||||||
threadSafe = <false|true> ) // (since Maven 3.0)
|
threadSafe = <false|true> ) // (since Maven 3.0)
|
||||||
@Execute( goal = "<goal-name>",
|
@Execute( goal = "<goal-name>",
|
||||||
phase = LifecyclePhase.<phase>
|
phase = LifecyclePhase.<phase>,
|
||||||
lifecycle = "<lifecycle-id>" )
|
lifecycle = "<lifecycle-id>" )
|
||||||
public class MyMojo
|
public class MyMojo
|
||||||
extends AbstractMojo
|
extends AbstractMojo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue