diff --git a/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/invoker.properties b/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/invoker.properties index 98d7b19..e3434ff 100644 --- a/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/invoker.properties +++ b/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/invoker.properties @@ -1,5 +1,3 @@ invoker.goals.1 = install -invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance-from-deps:annotation-with-inheritance-from-deps:1.0:first -#FIXME disabled need to find a solution for the chicken and eggs issue. -#help sources are generated @generated-sources but need descriptor which need compile phase first for classes scanning -#invoker.goals.3 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0::help +invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance-from-deps:annotation-with-inheritance-from-deps:1.0-SNAPSHOT:first +invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance-from-deps:annotation-with-inheritance-from-deps:1.0-SNAPSHOT:help diff --git a/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/pom.xml b/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/pom.xml index ea74e0a..370c4c6 100644 --- a/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/pom.xml +++ b/maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.annotation-with-inheritance-from-deps annotation-with-inheritance-from-deps - 1.0 + 1.0-SNAPSHOT maven-plugin Maven Integration Test :: annotation-with-inheritance-from-deps @@ -103,6 +103,12 @@ under the License. descriptor + + help-goal + + helpmojo + + diff --git a/maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/invoker.properties b/maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/invoker.properties index ebc1644..c3906a8 100644 --- a/maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/invoker.properties +++ b/maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/invoker.properties @@ -1,6 +1,3 @@ invoker.goals.1 = clean install -DskipTests invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance-reactor:module-mojo:1.0-SNAPSHOT:it0014 invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance-reactor:module-mojo:1.0-SNAPSHOT:first -#FIXME disabled need to find a solution for the chicken and eggs issue. -#help sources are generated @generated-sources but need descriptor which need compile phase first for classes scanning -#invoker.goals.3 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0::help diff --git a/maven-plugin-plugin/src/it/help-basic/invoker.properties b/maven-plugin-plugin/src/it/help-basic/invoker.properties index 1828fac..e384308 100644 --- a/maven-plugin-plugin/src/it/help-basic/invoker.properties +++ b/maven-plugin-plugin/src/it/help-basic/invoker.properties @@ -1,2 +1,2 @@ invoker.goals.1 = clean install -DskipTests -invoker.goals.2 = org.apache.maven.its.plugin:help:1.0:help +invoker.goals.2 = org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help diff --git a/maven-plugin-plugin/src/it/help-basic/pom.xml b/maven-plugin-plugin/src/it/help-basic/pom.xml index f51bdac..df81e40 100644 --- a/maven-plugin-plugin/src/it/help-basic/pom.xml +++ b/maven-plugin-plugin/src/it/help-basic/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.plugin help - 1.0 + 1.0-SNAPSHOT maven-plugin diff --git a/maven-plugin-plugin/src/it/help-package/pom.xml b/maven-plugin-plugin/src/it/help-package/pom.xml index d34a0e7..842afc1 100644 --- a/maven-plugin-plugin/src/it/help-package/pom.xml +++ b/maven-plugin-plugin/src/it/help-package/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.plugin help - 1.0 + 1.0-SNAPSHOT maven-plugin diff --git a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-a/pom.xml b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-a/pom.xml index 8c772fe..4531045 100644 --- a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-a/pom.xml +++ b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-a/pom.xml @@ -25,7 +25,7 @@ under the License. org.apache.maven.its.plugin ipcr - 1.0 + 1.0-SNAPSHOT ipcr-dep-a diff --git a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-b/pom.xml b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-b/pom.xml index 254d8d6..8999cc2 100644 --- a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-b/pom.xml +++ b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/dep-b/pom.xml @@ -25,7 +25,7 @@ under the License. org.apache.maven.its.plugin ipcr - 1.0 + 1.0-SNAPSHOT ipcr-dep-b @@ -42,7 +42,7 @@ under the License. org.apache.maven.its.plugin ipcr-dep-a - 1.0 + ${project.version} diff --git a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/pom.xml b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/pom.xml index 1d9752d..7b98666 100644 --- a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/pom.xml +++ b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.plugin ipcr - 1.0 + 1.0-SNAPSHOT pom Aggregator diff --git a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/test/pom.xml b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/test/pom.xml index df1dd9e..c616620 100644 --- a/maven-plugin-plugin/src/it/ignore-plugin-class-realm/test/pom.xml +++ b/maven-plugin-plugin/src/it/ignore-plugin-class-realm/test/pom.xml @@ -25,7 +25,7 @@ under the License. org.apache.maven.its.plugin ipcr - 1.0 + 1.0-SNAPSHOT ipcr-plugin @@ -45,7 +45,7 @@ under the License. org.apache.maven.its.plugin ipcr-dep-b - 1.0 + ${project.version} @@ -58,7 +58,7 @@ under the License. org.apache.maven.its.plugin ipcr-dep-b - 1.0 + 1.0-SNAPSHOT org.apache.maven.its.plugin diff --git a/maven-plugin-plugin/src/it/java-basic-annotations/invoker.properties b/maven-plugin-plugin/src/it/java-basic-annotations/invoker.properties index a559219..96b1dca 100644 --- a/maven-plugin-plugin/src/it/java-basic-annotations/invoker.properties +++ b/maven-plugin-plugin/src/it/java-basic-annotations/invoker.properties @@ -1,5 +1,3 @@ invoker.goals.1 = clean install -DskipTests -invoker.goals.2 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0:it0014 -#FIXME disabled need to find a solution for the chicken and eggs issue. -#help sources are generated @generated-sources but need descriptor which need compile phase first for classes scanning -#invoker.goals.3 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0::help +invoker.goals.2 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:it0014 +invoker.goals.3 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:help \ No newline at end of file diff --git a/maven-plugin-plugin/src/it/java-basic-annotations/pom.xml b/maven-plugin-plugin/src/it/java-basic-annotations/pom.xml index 8716b8b..3eb1e16 100644 --- a/maven-plugin-plugin/src/it/java-basic-annotations/pom.xml +++ b/maven-plugin-plugin/src/it/java-basic-annotations/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.basic-java-annotations maven-it-basic-java-annotations - 1.0 + 1.0-SNAPSHOT maven-plugin Maven Integration Test :: basic-java-annotations @@ -44,6 +44,12 @@ under the License. maven-plugin-api 2.0 + + org.codehaus.plexus + plexus-utils + 3.0.1 + provided + org.apache.maven.plugin-tools maven-plugin-annotations @@ -70,7 +76,6 @@ under the License. help-goal - process-classes helpmojo diff --git a/maven-plugin-plugin/src/it/java-basic/invoker.properties b/maven-plugin-plugin/src/it/java-basic/invoker.properties index 1a33a20..f382771 100644 --- a/maven-plugin-plugin/src/it/java-basic/invoker.properties +++ b/maven-plugin-plugin/src/it/java-basic/invoker.properties @@ -1,3 +1,3 @@ -invoker.goals.1 = install -DskipTests -invoker.goals.2 = org.apache.maven.its.it0013:maven-it-it0013:1.0:it0013 +invoker.goals.1 = clean install -DskipTests +invoker.goals.2 = org.apache.maven.its.it0013:maven-it-it0013:1.0-SNAPSHOT:it0013 diff --git a/maven-plugin-plugin/src/it/java-basic/pom.xml b/maven-plugin-plugin/src/it/java-basic/pom.xml index 651823b..d96ea92 100644 --- a/maven-plugin-plugin/src/it/java-basic/pom.xml +++ b/maven-plugin-plugin/src/it/java-basic/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.it0013 maven-it-it0013 - 1.0 + 1.0-SNAPSHOT maven-plugin Maven Integration Test :: it0013 diff --git a/maven-plugin-plugin/src/it/plugin-info-jdk-default-version/pom.xml b/maven-plugin-plugin/src/it/plugin-info-jdk-default-version/pom.xml index 18b0a36..42872ac 100644 --- a/maven-plugin-plugin/src/it/plugin-info-jdk-default-version/pom.xml +++ b/maven-plugin-plugin/src/it/plugin-info-jdk-default-version/pom.xml @@ -1,47 +1,48 @@ - - 4.0.0 - org.apache.maven.its - jdk-default-version - 1.0-SNAPSHOT - maven-plugin - - UTF-8 - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - - - org.apache.maven.plugins - maven-plugin-plugin - @project.version@ - - - org.apache.maven.plugins - maven-site-plugin - @sitePluginVersion@ - - - - + + 4.0.0 + org.apache.maven.its + jdk-default-version + 1.0-SNAPSHOT + maven-plugin + + UTF-8 + + + + org.apache.maven + maven-plugin-api + 2.0 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + + + org.apache.maven.plugins + maven-plugin-plugin + @project.version@ + + + org.apache.maven.plugins + maven-site-plugin + @sitePluginVersion@ + + + + diff --git a/maven-plugin-plugin/src/it/plugin-report/pom.xml b/maven-plugin-plugin/src/it/plugin-report/pom.xml index f8f2f29..39d180f 100644 --- a/maven-plugin-plugin/src/it/plugin-report/pom.xml +++ b/maven-plugin-plugin/src/it/plugin-report/pom.xml @@ -30,7 +30,7 @@ under the License. org.apache.maven.its plugin-report - 1.0 + 1.0-SNAPSHOT maven-plugin MPLUGIN-105 diff --git a/maven-plugin-plugin/src/it/skip/pom.xml b/maven-plugin-plugin/src/it/skip/pom.xml index a54c994..40a0893 100644 --- a/maven-plugin-plugin/src/it/skip/pom.xml +++ b/maven-plugin-plugin/src/it/skip/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.it0013 mplugin-174 - 1.0 + 1.0-SNAPSHOT maven-plugin MPLUGIN-174 diff --git a/maven-plugin-plugin/src/it/source-encoding/latin-1/pom.xml b/maven-plugin-plugin/src/it/source-encoding/latin-1/pom.xml index b9e8530..e21d6ca 100644 --- a/maven-plugin-plugin/src/it/source-encoding/latin-1/pom.xml +++ b/maven-plugin-plugin/src/it/source-encoding/latin-1/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.plugin latin-1 - 1.0 + 1.0-SNAPSHOT maven-plugin Latin-1 @@ -49,12 +49,12 @@ under the License. org.apache.maven.plugins maven-compiler-plugin - 2.0.2 + 2.4 org.apache.maven.plugins maven-resources-plugin - 2.2 + 2.5 org.apache.maven.plugins diff --git a/maven-plugin-plugin/src/it/source-encoding/pom.xml b/maven-plugin-plugin/src/it/source-encoding/pom.xml index 4b58ca5..57cff57 100644 --- a/maven-plugin-plugin/src/it/source-encoding/pom.xml +++ b/maven-plugin-plugin/src/it/source-encoding/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.plugin aggregator - 1.0 + 1.0-SNAPSHOT pom Aggregator diff --git a/maven-plugin-plugin/src/it/source-encoding/utf-8/pom.xml b/maven-plugin-plugin/src/it/source-encoding/utf-8/pom.xml index 4e29ebc..a8ddf7f 100644 --- a/maven-plugin-plugin/src/it/source-encoding/utf-8/pom.xml +++ b/maven-plugin-plugin/src/it/source-encoding/utf-8/pom.xml @@ -24,7 +24,7 @@ under the License. org.apache.maven.its.plugin utf-8 - 1.0 + 1.0-SNAPSHOT maven-plugin UTF-8 @@ -49,12 +49,12 @@ under the License. org.apache.maven.plugins maven-compiler-plugin - 2.0.2 + 2.4 org.apache.maven.plugins maven-resources-plugin - 2.2 + 2.5 org.apache.maven.plugins diff --git a/maven-plugin-tools-api/src/main/resources/help-class-source.vm b/maven-plugin-tools-api/src/main/resources/help-class-source.vm index faf7beb..f4e356a 100644 --- a/maven-plugin-tools-api/src/main/resources/help-class-source.vm +++ b/maven-plugin-tools-api/src/main/resources/help-class-source.vm @@ -14,14 +14,13 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import org.apache.maven.plugins.annotations.Mojo; -import org.apache.maven.plugins.annotations.Parameter; - /** * @author * @version + * @goal help + * @requiresProject false + * @threadSafe */ -@Mojo( name = "help", threadSafe = true, requiresProject = false) public class HelpMojo extends AbstractMojo { @@ -29,29 +28,57 @@ public class HelpMojo * If true, display all settable properties for each goal. * */ - @Parameter( expression = "${detail}", defaultValue = "false" ) - private boolean detail; + //@Parameter( expression = "${detail}", defaultValue = "false" ) + //private boolean detail; /** * The name of the goal for which to show help. If unspecified, all goals will be displayed. * */ - @Parameter( expression = "${goal}" ) - private java.lang.String goal; + //@Parameter( expression = "${goal}" ) + //private java.lang.String goal; /** * The maximum length of a display line, should be positive. * */ - @Parameter( expression = "${lineLength}", defaultValue = "80" ) - private int lineLength; + //@Parameter( expression = "${lineLength}", defaultValue = "80" ) + //private int lineLength; /** * The number of spaces per indentation level, should be positive. * */ - @Parameter( expression = "${indentSize}", defaultValue = "2" ) - private int indentSize; + //@Parameter( expression = "${indentSize}", defaultValue = "2" ) + //private int indentSize; + +/** + * If true, display all settable properties for each goal. + * + * @parameter expression="${detail}" default-value="false" + */ +private boolean detail; + +/** + * The name of the goal for which to show help. If unspecified, all goals will be displayed. + * + * @parameter expression="${goal}" + */ +private java.lang.String goal; + +/** + * The maximum length of a display line, should be positive. + * + * @parameter expression="${lineLength}" default-value="80" + */ +private int lineLength; + +/** + * The number of spaces per indentation level, should be positive. + * + * @parameter expression="${indentSize}" default-value="2" + */ +private int indentSize; // groupId/artifactId/version private String pluginDescriptorPath = "${propertiesFilePath}";