diff --git a/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java b/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java index 68ecd5d42e..8e1c0bc2a5 100644 --- a/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java +++ b/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java @@ -1,36 +1,29 @@ -import org.apache.maven.plugin.AbstractPlugin; -import org.apache.maven.plugin.PluginExecutionRequest; -import org.apache.maven.plugin.PluginExecutionResponse; + +import org.apache.maven.plugin.AbstractMojo; /** - * @goal ideaOne + * Create an IDEA project file from a Maven project. * - * @description Create an IDEA project file from a Maven project. + * @goal ideaOne * * @requiresDependencyResolution * - * @prereq foo - * @prereq bar - * - * @parameter - * name="project" - * type="String[]" - * required="true" - * validator="org.foo.validator" - * expression="#project" - * description="Maven project used to generate IDEA project files." */ public class JavaExtractorTestOne - extends AbstractPlugin + extends AbstractMojo { - protected String var; + /** + * Maven project used to generate IDEA project files. + * @parameter expression="#project" + * @required + */ + protected String[] project; public JavaExtractorTestOne() { } - public void execute( PluginExecutionRequest request, PluginExecutionResponse response ) - throws Exception + public void execute() { } } diff --git a/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java b/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java index 4e4c9adb0c..8cb8b78d17 100644 --- a/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java +++ b/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java @@ -1,32 +1,27 @@ -import org.apache.maven.plugin.AbstractPlugin; -import org.apache.maven.plugin.PluginExecutionRequest; -import org.apache.maven.plugin.PluginExecutionResponse; +import org.apache.maven.plugin.AbstractMojo; /** + * Create an IDEA project file from a Maven project. * @goal ideaTwo - * @description Create an IDEA project file from a Maven project. * @requiresDependencyResolution compile - * @prereq foo - * @prereq bar - * @parameter name="project" - * type="String[]" - * required="true" - * validator="org.foo.validator" - * expression="#project" - * description="Maven project used to generate IDEA project files." */ public class JavaExtractorTestTwo - extends AbstractPlugin + extends AbstractMojo { - protected String var; + + /** + * Maven project used to generate IDEA project files. + * @parameter expression="#project" + * @required + */ + private String[] project; public JavaExtractorTestTwo() { } - public void execute( PluginExecutionRequest request, PluginExecutionResponse response ) - throws Exception + public void execute() { } }