diff --git a/maven-plugin-plugin/src/it/help-basic/pom.xml b/maven-plugin-plugin/src/it/help-basic/pom.xml
index 320219f..4a164bc 100644
--- a/maven-plugin-plugin/src/it/help-basic/pom.xml
+++ b/maven-plugin-plugin/src/it/help-basic/pom.xml
@@ -46,6 +46,12 @@ under the License.
plexus-utils
3.0.1
+
+ org.apache.maven.plugin-tools
+ maven-plugin-annotations
+ @project.version@
+ provided
+
@@ -64,6 +70,10 @@ under the License.
maven-plugin-plugin
@project.version@
+
+ default-descriptor
+ process-classes
+
help-goal
diff --git a/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java b/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java
index e6a1bce..0be9fd3 100644
--- a/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java
+++ b/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java
@@ -20,15 +20,17 @@ package test;
*/
import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
/**
* MOJO-DESCRIPTION. Some "quotation" marks and backslashes '\\', some important javadoc
and an
* inline link to {@link test.AnotherMojo}.
*
- * @goal test
* @deprecated As of 1.0, use the "quoted" goal instead.
* @since 2.1
*/
+@Mojo( name= "test" )
public class MyMojo
extends AbstractMojo
{
@@ -37,31 +39,26 @@ public class MyMojo
* This parameter uses "quotation" marks and backslashes '\\' in its description. Those characters must be
* escaped in Java string literals.
*
- * @parameter default-value="escape\\backslash"
* @since 2.0
*/
+ @Parameter( defaultValue = "escape\\backslash" )
private String defaultParam;
/**
* This parameter is deprecated.
*
- * @parameter
* @deprecated As of version 1.0, use the {@link #defaultParam} instead.
*/
+ @Parameter
private String deprecatedParam;
- /**
- * @parameter expression="${test.undocumented}"
- * @required
- */
+ @Parameter( property = "test.undocumented", required = true )
private String undocumentedParam;
/**
* Readonly parameter: should not be proposed for configuration.
- *
- * @parameter default-value="not for configuration"
- * @readonly
*/
+ @Parameter( defaultValue = "not for configuration", readonly = true )
private String readonly;
public void execute()
diff --git a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/HelpGeneratorMojo.java b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/HelpGeneratorMojo.java
index 1b390e6..7db0d68 100644
--- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/HelpGeneratorMojo.java
+++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/HelpGeneratorMojo.java
@@ -85,6 +85,9 @@ public class HelpGeneratorMojo
public void execute()
throws MojoExecutionException
{
+ // force value for this plugin
+ skipErrorNoDescriptorsFound = true;
+
super.execute();
if ( !project.getCompileSourceRoots().contains( outputDirectory.getAbsolutePath() ) && !skip )