[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
master
Herve Boutemy 2013-07-20 22:03:41 +00:00
parent f3e2aa95c4
commit 0c5a83e673
7 changed files with 49 additions and 48 deletions

View File

@ -21,8 +21,8 @@
<!-- START SNIPPET: ant-mojo --> <!-- START SNIPPET: ant-mojo -->
<pluginMetadata <pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0" xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd">
<mojos> <mojos>
<mojo> <mojo>
<!-- target name to call in ant script --> <!-- target name to call in ant script -->

View File

@ -21,7 +21,7 @@
<pluginMetadata <pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0" xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 ../../../../../../maven-plugin-tools-model/target/generated-site/xsd/plugin/metadata-1.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd">
<mojos> <mojos>
<mojo> <mojo>
<call>test</call> <call>test</call>

View File

@ -21,7 +21,7 @@
<pluginMetadata <pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0" xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 ../../../../../../maven-plugin-tools-model/target/generated-site/xsd/plugin-metadata-1.0.0.xsd "> xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd">
<mojos> <mojos>
<mojo> <mojo>
<call>test</call> <call>test</call>

View File

@ -19,8 +19,8 @@
--> -->
<pluginMetadata <pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0" xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd">
<mojos> <mojos>
<mojo> <mojo>
<goal>sample</goal> <goal>sample</goal>

View File

@ -19,8 +19,8 @@
--> -->
<pluginMetadata <pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0" xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd">
<mojos> <mojos>
<mojo> <mojo>
<goal>sample</goal> <goal>sample</goal>

View File

@ -60,7 +60,8 @@
<models> <models>
<model>src/main/mdo/plugin-metadata.mdo</model> <model>src/main/mdo/plugin-metadata.mdo</model>
</models> </models>
<version>1.0.0</version> <version>1.1.0</version>
<firstVersion>1.0.0</firstVersion>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>

View File

@ -68,7 +68,7 @@
--> -->
<model xmlns="http://modello.codehaus.org/MODELLO/1.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <model xmlns="http://modello.codehaus.org/MODELLO/1.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.4.0 http://modello.codehaus.org/xsd/modello-1.4.0.xsd" xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.4.0 http://modello.codehaus.org/xsd/modello-1.4.0.xsd"
xsd.namespace="http://maven.apache.org/PLUGIN-METADATA/1.0.0" xsd.namespace="http://maven.apache.org/PLUGIN-METADATA/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/plugin-metadata-${version}.xsd"> xml.schemaLocation="http://maven.apache.org/xsd/plugin-metadata-${version}.xsd">
<id>plugin-metadata</id> <id>plugin-metadata</id>
<name>PluginMetadata</name> <name>PluginMetadata</name>
@ -84,12 +84,12 @@
<classes> <classes>
<class rootElement="true" xml.tagName="pluginMetadata"> <class rootElement="true" xml.tagName="pluginMetadata">
<name>PluginMetadata</name> <name>PluginMetadata</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>Root element of a script-based mojo's plugin metadata bindings.</description> <description>Root element of a script-based mojo's plugin metadata bindings.</description>
<fields> <fields>
<field> <field>
<name>mojos</name> <name>mojos</name>
<version>1.0.0</version> <version>1.0.0+</version>
<required>true</required> <required>true</required>
<description>The list of mojos contained in the accompanying script.</description> <description>The list of mojos contained in the accompanying script.</description>
<association> <association>
@ -101,69 +101,69 @@
</class> </class>
<class> <class>
<name>Mojo</name> <name>Mojo</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>Mojo descriptor definition.</description> <description>Mojo descriptor definition.</description>
<fields> <fields>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>goal</name> <name>goal</name>
<type>String</type> <type>String</type>
<required>true</required> <required>true</required>
<description>The name of the goal used to invoke this mojo.</description> <description>The name of the goal used to invoke this mojo.</description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>phase</name> <name>phase</name>
<type>String</type> <type>String</type>
<description>The phase to which this mojo should be bound by default.</description> <description>The phase to which this mojo should be bound by default.</description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>aggregator</name> <name>aggregator</name>
<type>boolean</type> <type>boolean</type>
<description>Whether this mojo operates as an aggregator when the reactor is run. That is, only runs once. <description>Whether this mojo operates as an aggregator when the reactor is run. That is, only runs once.
</description> </description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>requiresDependencyResolution</name> <name>requiresDependencyResolution</name>
<type>String</type> <type>String</type>
<description>The scope of dependencies that this mojo requires to have resolved.</description> <description>The scope of dependencies that this mojo requires to have resolved.</description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>requiresProject</name> <name>requiresProject</name>
<type>boolean</type> <type>boolean</type>
<description>Whether this mojo requires a project instance in order to execute.</description> <description>Whether this mojo requires a project instance in order to execute.</description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>requiresReports</name> <name>requiresReports</name>
<type>boolean</type> <type>boolean</type>
<description>Whether this mojo requires a reports section in the POM.</description> <description>Whether this mojo requires a reports section in the POM.</description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>requiresOnline</name> <name>requiresOnline</name>
<type>boolean</type> <type>boolean</type>
<description>Whether this mojo requires online mode to operate normally.</description> <description>Whether this mojo requires online mode to operate normally.</description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>inheritByDefault</name> <name>inheritByDefault</name>
<type>boolean</type> <type>boolean</type>
<description>Whether this mojo's configuration should propagate down the POM inheritance chain by default. <description>Whether this mojo's configuration should propagate down the POM inheritance chain by default.
</description> </description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>requiresDirectInvocation</name> <name>requiresDirectInvocation</name>
<type>boolean</type> <type>boolean</type>
<description>If true, this mojo can only be directly invoked (eg. specified directly on the command line). <description>If true, this mojo can only be directly invoked (eg. specified directly on the command line).
</description> </description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>execution</name> <name>execution</name>
<description>Information about a sub-execution of the Maven lifecycle which should be processed.</description> <description>Information about a sub-execution of the Maven lifecycle which should be processed.</description>
<association> <association>
@ -171,7 +171,7 @@
</association> </association>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>components</name> <name>components</name>
<description>List of plexus components required by this mojo.</description> <description>List of plexus components required by this mojo.</description>
<association> <association>
@ -180,7 +180,7 @@
</association> </association>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>parameters</name> <name>parameters</name>
<description>List of parameters used by this mojo.</description> <description>List of parameters used by this mojo.</description>
<association> <association>
@ -190,24 +190,24 @@
</field> </field>
<field> <field>
<name>description</name> <name>description</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>The description for this parameter.</description> <description>The description for this parameter.</description>
<type>String</type> <type>String</type>
</field> </field>
<field xml.tagName="deprecated"> <field xml.tagName="deprecated">
<name>deprecation</name> <name>deprecation</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>A deprecation message for this mojo parameter.</description> <description>A deprecation message for this mojo parameter.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.1.0+</version>
<name>since</name> <name>since</name>
<type>String</type> <type>String</type>
<description>Version when the mojo was added to the API.</description> <description>Version when the mojo was added to the API.</description>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.0.0+</version>
<name>call</name> <name>call</name>
<type>String</type> <type>String</type>
<description>The target/method within the script to call when this mojo executes.</description> <description>The target/method within the script to call when this mojo executes.</description>
@ -216,14 +216,14 @@
</class> </class>
<class> <class>
<name>LifecycleExecution</name> <name>LifecycleExecution</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description><![CDATA[ <description><![CDATA[
A sub-process execution of a lifecycle to satisfy the needs of a mojo. A sub-process execution of a lifecycle to satisfy the needs of a mojo.
]]></description> ]]></description>
<fields> <fields>
<field> <field>
<name>lifecycle</name> <name>lifecycle</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>String</type> <type>String</type>
<description>The name of the overlay to apply to the sub-lifecycle before executing it. If specified, this <description>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. lifecycle overlay definition will be bundled with the plugin.
@ -231,13 +231,13 @@
</field> </field>
<field> <field>
<name>phase</name> <name>phase</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>The phase in the sub-lifecycle.</description> <description>The phase in the sub-lifecycle.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>goal</name> <name>goal</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>A goal, not attached to a lifecycle phase, which should be executed ahead of this mojo. <description>A goal, not attached to a lifecycle phase, which should be executed ahead of this mojo.
</description> </description>
<type>String</type> <type>String</type>
@ -246,21 +246,21 @@
</class> </class>
<class> <class>
<name>Component</name> <name>Component</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description><![CDATA[ <description><![CDATA[
A reference to a plexus component, assumed to be available to the plugin container. A reference to a plexus component, assumed to be available to the plugin container.
]]></description> ]]></description>
<fields> <fields>
<field> <field>
<name>role</name> <name>role</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>The component role to lookup.</description> <description>The component role to lookup.</description>
<required>true</required> <required>true</required>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>hint</name> <name>hint</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>String</type> <type>String</type>
<description>The role-hint to lookup.</description> <description>The role-hint to lookup.</description>
</field> </field>
@ -268,39 +268,39 @@
</class> </class>
<class> <class>
<name>Parameter</name> <name>Parameter</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description><![CDATA[ <description><![CDATA[
A parameter used by a mojo, and configurable from the command line or POM configuration sections. A parameter used by a mojo, and configurable from the command line or POM configuration sections.
]]></description> ]]></description>
<fields> <fields>
<field> <field>
<name>name</name> <name>name</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>The parameter name</description> <description>The parameter name</description>
<required>true</required> <required>true</required>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>alias</name> <name>alias</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>String</type> <type>String</type>
<description>An alternate name for the parameter.</description> <description>An alternate name for the parameter.</description>
</field> </field>
<field> <field>
<name>property</name> <name>property</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>String</type> <type>String</type>
<description>The JavaBeans property name to use to configure the mojo with this parameter.</description> <description>The JavaBeans property name to use to configure the mojo with this parameter.</description>
</field> </field>
<field> <field>
<name>required</name> <name>required</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>boolean</type> <type>boolean</type>
<description>Whether this parameter is required.</description> <description>Whether this parameter is required.</description>
</field> </field>
<field> <field>
<name>readonly</name> <name>readonly</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>boolean</type> <type>boolean</type>
<description><![CDATA[ <description><![CDATA[
Whether this parameter can be directly edited. If false, this param is either derived from another POM element, or refers to a runtime instance of the build system. Whether this parameter can be directly edited. If false, this param is either derived from another POM element, or refers to a runtime instance of the build system.
@ -308,7 +308,7 @@
</field> </field>
<field> <field>
<name>expression</name> <name>expression</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>String</type> <type>String</type>
<description><![CDATA[ <description><![CDATA[
The command-line reference to this parameter. The command-line reference to this parameter.
@ -316,7 +316,7 @@
</field> </field>
<field> <field>
<name>defaultValue</name> <name>defaultValue</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>String</type> <type>String</type>
<description><![CDATA[ <description><![CDATA[
An expression in the form ${instance.property} for extracting a value for this parameter, especially from An expression in the form ${instance.property} for extracting a value for this parameter, especially from
@ -326,7 +326,7 @@
</field> </field>
<field> <field>
<name>type</name> <name>type</name>
<version>1.0.0</version> <version>1.0.0+</version>
<type>String</type> <type>String</type>
<required>true</required> <required>true</required>
<description><![CDATA[ <description><![CDATA[
@ -335,18 +335,18 @@
</field> </field>
<field> <field>
<name>description</name> <name>description</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>The description for this parameter.</description> <description>The description for this parameter.</description>
<type>String</type> <type>String</type>
</field> </field>
<field xml.tagName="deprecated"> <field xml.tagName="deprecated">
<name>deprecation</name> <name>deprecation</name>
<version>1.0.0</version> <version>1.0.0+</version>
<description>A deprecation message for this mojo parameter.</description> <description>A deprecation message for this mojo parameter.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<version>1.0.0</version> <version>1.1.0+</version>
<name>since</name> <name>since</name>
<type>String</type> <type>String</type>
<description>Version when the parameter was added.</description> <description>Version when the parameter was added.</description>