From f67446b9140d340592a6a8e2a6f8084a6947a899 Mon Sep 17 00:00:00 2001 From: Anders Hammar Date: Thu, 29 Nov 2012 13:54:53 +0000 Subject: [PATCH] [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-ffa450edef68 --- .../src/site/apt/examples/using-annotations.apt.vm | 2 +- maven-plugin-tools-annotations/src/site/apt/index.apt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm b/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm index 4766b66..45fabc1 100644 --- a/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm +++ b/maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm @@ -122,5 +122,5 @@ Using Plugin Tools Java5 Annotations *-------------------------------+---------------+ | <<<@goal "goal-name">>> | <<<@Mojo( name = "goal-name" )>>> *-------------------------------+---------------+ -| <<<@phase "\">>> | <<<@Mojo( defaultPhase = "\" )>>> +| <<<@phase "\">>> | <<<@Mojo( defaultPhase = LifecyclePhase.\ )>>> *-------------------------------+---------------+ diff --git a/maven-plugin-tools-annotations/src/site/apt/index.apt b/maven-plugin-tools-annotations/src/site/apt/index.apt index 1978f0d..2d79c62 100644 --- a/maven-plugin-tools-annotations/src/site/apt/index.apt +++ b/maven-plugin-tools-annotations/src/site/apt/index.apt @@ -39,13 +39,13 @@ import org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecution; 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.Execute; import org.apache.maven.plugins.annotations.InstantiationStrategy; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; +import org.apache.maven.plugins.annotations.ResolutionScope; import org.apache.maven.project.MavenProject; import org.apache.maven.settings.Settings; @@ -60,7 +60,7 @@ import org.apache.maven.settings.Settings; executionStrategy = "", inheritByDefault = , instantiationStrategy = InstantiationStrategy., - defaultPhase = "", + defaultPhase = LifecyclePhase., requiresDependencyResolution = ResolutionScope., requiresDependencyCollection = ResolutionScope., // (since Maven 3.0) requiresDirectInvocation = , @@ -69,7 +69,7 @@ import org.apache.maven.settings.Settings; requiresReports = , // (unsupported since Maven 3.0) threadSafe = ) // (since Maven 3.0) @Execute( goal = "", - phase = LifecyclePhase. + phase = LifecyclePhase., lifecycle = "" ) public class MyMojo extends AbstractMojo