From 0c5a83e673cee74d5202bfd0a55cd93f145db544 Mon Sep 17 00:00:00 2001 From: Herve Boutemy Date: Sat, 20 Jul 2013 22:03:41 +0000 Subject: [PATCH] [MPLUGIN-250] created plugin-metadata descriptor version 1.1.0 to add the since element, which cannot be added into already released 1.0.0 version git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505220 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/scripts/touch.mojos.xml | 4 +- .../src/main/scripts/test.mojos.xml | 2 +- .../plugin/src/main/scripts/test.mojos.xml | 2 +- .../src/main/scripts/sample.mojos.xml | 4 +- .../src/main/scripts/sample.mojos.xml | 4 +- maven-plugin-tools-model/pom.xml | 3 +- .../src/main/mdo/plugin-metadata.mdo | 78 +++++++++---------- 7 files changed, 49 insertions(+), 48 deletions(-) diff --git a/maven-plugin-plugin/src/it/ant-basic/src/main/scripts/touch.mojos.xml b/maven-plugin-plugin/src/it/ant-basic/src/main/scripts/touch.mojos.xml index 22d200e..d904ca7 100644 --- a/maven-plugin-plugin/src/it/ant-basic/src/main/scripts/touch.mojos.xml +++ b/maven-plugin-plugin/src/it/ant-basic/src/main/scripts/touch.mojos.xml @@ -21,8 +21,8 @@ + xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0" + xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd"> diff --git a/maven-plugin-plugin/src/it/ant-reference-parameter/src/main/scripts/test.mojos.xml b/maven-plugin-plugin/src/it/ant-reference-parameter/src/main/scripts/test.mojos.xml index 0766b99..ef296d0 100644 --- a/maven-plugin-plugin/src/it/ant-reference-parameter/src/main/scripts/test.mojos.xml +++ b/maven-plugin-plugin/src/it/ant-reference-parameter/src/main/scripts/test.mojos.xml @@ -21,7 +21,7 @@ + xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd"> test diff --git a/maven-plugin-plugin/src/it/ant-simple-usage/plugin/src/main/scripts/test.mojos.xml b/maven-plugin-plugin/src/it/ant-simple-usage/plugin/src/main/scripts/test.mojos.xml index 133426c..464d8aa 100644 --- a/maven-plugin-plugin/src/it/ant-simple-usage/plugin/src/main/scripts/test.mojos.xml +++ b/maven-plugin-plugin/src/it/ant-simple-usage/plugin/src/main/scripts/test.mojos.xml @@ -21,7 +21,7 @@ + xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd"> test diff --git a/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml b/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml index 2b55337..988c04a 100644 --- a/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml +++ b/maven-plugin-plugin/src/it/ant-since-maven-plugin/src/main/scripts/sample.mojos.xml @@ -19,8 +19,8 @@ --> + xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0" + xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd"> sample diff --git a/maven-plugin-plugin/src/it/fix-maven-since-3.x/antsample-maven-plugin/src/main/scripts/sample.mojos.xml b/maven-plugin-plugin/src/it/fix-maven-since-3.x/antsample-maven-plugin/src/main/scripts/sample.mojos.xml index 7706b9e..1116b90 100644 --- a/maven-plugin-plugin/src/it/fix-maven-since-3.x/antsample-maven-plugin/src/main/scripts/sample.mojos.xml +++ b/maven-plugin-plugin/src/it/fix-maven-since-3.x/antsample-maven-plugin/src/main/scripts/sample.mojos.xml @@ -19,8 +19,8 @@ --> + xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0" + xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd"> sample diff --git a/maven-plugin-tools-model/pom.xml b/maven-plugin-tools-model/pom.xml index 5d8b3f6..0afe96b 100644 --- a/maven-plugin-tools-model/pom.xml +++ b/maven-plugin-tools-model/pom.xml @@ -60,7 +60,8 @@ src/main/mdo/plugin-metadata.mdo - 1.0.0 + 1.1.0 + 1.0.0 diff --git a/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo b/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo index 3026ce9..49f8e28 100644 --- a/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo +++ b/maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo @@ -68,7 +68,7 @@ --> plugin-metadata PluginMetadata @@ -84,12 +84,12 @@ PluginMetadata - 1.0.0 + 1.0.0+ Root element of a script-based mojo's plugin metadata bindings. mojos - 1.0.0 + 1.0.0+ true The list of mojos contained in the accompanying script. @@ -101,69 +101,69 @@ Mojo - 1.0.0 + 1.0.0+ Mojo descriptor definition. - 1.0.0 + 1.0.0+ goal String true The name of the goal used to invoke this mojo. - 1.0.0 + 1.0.0+ phase String The phase to which this mojo should be bound by default. - 1.0.0 + 1.0.0+ aggregator boolean Whether this mojo operates as an aggregator when the reactor is run. That is, only runs once. - 1.0.0 + 1.0.0+ requiresDependencyResolution String The scope of dependencies that this mojo requires to have resolved. - 1.0.0 + 1.0.0+ requiresProject boolean Whether this mojo requires a project instance in order to execute. - 1.0.0 + 1.0.0+ requiresReports boolean Whether this mojo requires a reports section in the POM. - 1.0.0 + 1.0.0+ requiresOnline boolean Whether this mojo requires online mode to operate normally. - 1.0.0 + 1.0.0+ inheritByDefault boolean Whether this mojo's configuration should propagate down the POM inheritance chain by default. - 1.0.0 + 1.0.0+ requiresDirectInvocation boolean If true, this mojo can only be directly invoked (eg. specified directly on the command line). - 1.0.0 + 1.0.0+ execution Information about a sub-execution of the Maven lifecycle which should be processed. @@ -171,7 +171,7 @@ - 1.0.0 + 1.0.0+ components List of plexus components required by this mojo. @@ -180,7 +180,7 @@ - 1.0.0 + 1.0.0+ parameters List of parameters used by this mojo. @@ -190,24 +190,24 @@ description - 1.0.0 + 1.0.0+ The description for this parameter. String deprecation - 1.0.0 + 1.0.0+ A deprecation message for this mojo parameter. String - 1.0.0 + 1.1.0+ since String Version when the mojo was added to the API. - 1.0.0 + 1.0.0+ call String The target/method within the script to call when this mojo executes. @@ -216,14 +216,14 @@ LifecycleExecution - 1.0.0 + 1.0.0+ lifecycle - 1.0.0 + 1.0.0+ String The name of the overlay to apply to the sub-lifecycle before executing it. If specified, this lifecycle overlay definition will be bundled with the plugin. @@ -231,13 +231,13 @@ phase - 1.0.0 + 1.0.0+ The phase in the sub-lifecycle. String goal - 1.0.0 + 1.0.0+ A goal, not attached to a lifecycle phase, which should be executed ahead of this mojo. String @@ -246,21 +246,21 @@ Component - 1.0.0 + 1.0.0+ role - 1.0.0 + 1.0.0+ The component role to lookup. true String hint - 1.0.0 + 1.0.0+ String The role-hint to lookup. @@ -268,39 +268,39 @@ Parameter - 1.0.0 + 1.0.0+ name - 1.0.0 + 1.0.0+ The parameter name true String alias - 1.0.0 + 1.0.0+ String An alternate name for the parameter. property - 1.0.0 + 1.0.0+ String The JavaBeans property name to use to configure the mojo with this parameter. required - 1.0.0 + 1.0.0+ boolean Whether this parameter is required. readonly - 1.0.0 + 1.0.0+ boolean expression - 1.0.0 + 1.0.0+ String defaultValue - 1.0.0 + 1.0.0+ String type - 1.0.0 + 1.0.0+ String true description - 1.0.0 + 1.0.0+ The description for this parameter. String deprecation - 1.0.0 + 1.0.0+ A deprecation message for this mojo parameter. String - 1.0.0 + 1.1.0+ since String Version when the parameter was added.