o upgraded Modello version to 1.0

o improved models to use Modello new features (merged from 2.1.x branch r745216)

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@745260 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Herve Boutemy 2009-02-17 21:46:38 +00:00
parent 29df2bf1bf
commit 3d52a23b10
9 changed files with 134 additions and 115 deletions

View File

@ -139,12 +139,13 @@ END SNIPPET: ant-bootstrap -->
<sequential>
<java fork="fork" classname="org.codehaus.modello.ModelloCli" failonerror="true">
<classpath refid="modello.pathid"/>
<arg file="@{file}"/>
<arg value="@{mode}"/>
<arg file="bootstrap/target/generated-sources"/>
<arg value="@{version}"/>
<arg value="false"/>
<arg value="false"/>
<arg file="@{file}"/> <!-- model file -->
<arg value="@{mode}"/> <!-- output type -->
<arg file="bootstrap/target/generated-sources"/> <!-- output directory -->
<arg value="@{version}"/> <!-- model version -->
<arg value="false"/> <!-- package with version -->
<arg value="true"/> <!-- use Java 5 -->
<arg value="UTF-8"/> <!-- encoding -->
</java>
</sequential>
</macrodef>

View File

@ -17,7 +17,10 @@ specific language governing permissions and limitations
under the License.
-->
<model>
<model xmlns="http://modello.codehaus.org/MODELLO/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.0.0 http://modello.codehaus.org/xsd/modello-1.0.0.xsd"
xml.namespace="http://maven.apache.org/METADATA/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/metadata-${version}.xsd">
<id>repository-metadata</id>
<name>Metadata</name>
<description>Per-directory repository metadata.</description>

View File

@ -19,8 +19,10 @@
under the License.
-->
<model xsd.namespace="http://maven.apache.org/SETTINGS/1.0.0"
xsd.target-namespace="http://maven.apache.org/SETTINGS/1.0.0">
<model xmlns="http://modello.codehaus.org/MODELLO/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.0.0 http://modello.codehaus.org/xsd/modello-1.0.0.xsd"
xml.namespace="http://maven.apache.org/SETTINGS/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/settings-${version}.xsd">
<id>settings</id>
<name>Settings</name>
<description>

View File

@ -23,7 +23,10 @@
<!--
*** NOTE: If you add a new lifecycle or phase, be sure to update the codeSegments! ***
-->
<model>
<model xmlns="http://modello.codehaus.org/MODELLO/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.0.0 http://modello.codehaus.org/xsd/modello-1.0.0.xsd"
xml.namespace="http://maven.apache.org/MAVEN_LIFECYCLE/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/maven-lifecycle-${version}.xsd">
<id>build-lifecycle</id>
<name>LifecycleBindings</name>
<description>Model for lifecycle specifications starting in Maven 2.1</description>

View File

@ -43,7 +43,10 @@
| definition of these types
|
-->
<model xsd.namespace="http://maven.apache.org/POM/4.0.0" xsd.target-namespace="http://maven.apache.org/POM/4.0.0">
<model xmlns="http://modello.codehaus.org/MODELLO/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.0.0 http://modello.codehaus.org/xsd/modello-1.0.0.xsd"
xml.namespace="http://maven.apache.org/POM/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/maven-${version}.xsd">
<id>maven</id>
<name>Maven</name>
<description>
@ -103,7 +106,7 @@
<!-- Parent Model -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>extend</name>
<version>3.0.0</version>
<description>
@ -117,7 +120,7 @@
</description>
<type>String</type>
</field>
<field>
<field xdoc.separator="blank">
<name>parent</name>
<version>4.0.0</version>
<description>The location of the parent project, if one exists. Values from the parent
@ -132,7 +135,7 @@
<!-- groupId/artifactId/Version/Packaging -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>groupId</name>
<version>3.0.0+</version>
<required>true</required>
@ -212,7 +215,7 @@
<!-- Elements which describe a project -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>name</name>
<version>3.0.0+</version>
<required>true</required>
@ -312,7 +315,7 @@
<multiplicity>*</multiplicity>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>mailingLists</name>
<version>3.0.0+</version>
<description>Contains information about a project's mailing lists.</description>
@ -321,7 +324,7 @@
<multiplicity>*</multiplicity>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>developers</name>
<version>3.0.0+</version>
<description>Describes the committers of a project.</description>
@ -344,13 +347,13 @@
<!-- Issue Tracking -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>issueTrackingUrl</name>
<version>3.0.0</version>
<description>The URL of the project's issue tracking system.</description>
<type>String</type>
</field>
<field>
<field xdoc.separator="blank">
<name>issueManagement</name>
<version>4.0.0</version>
<description>The project's issue management system information.</description>
@ -363,7 +366,7 @@
<!-- SCM -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>branches</name>
<version>3.0.0</version>
<description>
@ -493,7 +496,7 @@
<!-- Build prerequisites -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>prerequisites</name>
<version>4.0.0</version>
<description>Describes the prerequisites in the build environment for this project.</description>
@ -506,7 +509,7 @@
<!-- Build -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>build</name>
<version>3.0.0+</version>
<required>true</required>
@ -520,7 +523,7 @@
<!-- Profiles -->
<!-- ====================================================================== -->
<field>
<field xdoc.separator="blank">
<name>profiles</name>
<version>4.0.0</version>
<description>A listing of project-local build profiles which will modify the build process
@ -603,7 +606,7 @@
<type>DistributionManagement</type>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>modules</name>
<version>4.0.0</version>
<description>The modules (sometimes called subprojects) to build as a part of this
@ -613,7 +616,7 @@
<multiplicity>*</multiplicity>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>repositories</name>
<version>4.0.0</version>
<description>The lists of the remote repositories for discovering dependencies and
@ -633,7 +636,7 @@
<multiplicity>*</multiplicity>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>dependencies</name>
<version>3.0.0+</version>
<description>
@ -652,7 +655,7 @@
<multiplicity>*</multiplicity>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>reports</name>
<version>4.0.0</version>
<description>
@ -677,7 +680,7 @@
<type>Reporting</type>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>dependencyManagement</name>
<version>4.0.0</version>
<required>false</required>
@ -690,7 +693,7 @@
<type>DependencyManagement</type>
</association>
</field>
<field>
<field xdoc.separator="blank">
<name>properties</name>
<version>4.0.0</version>
<description>

View File

@ -17,7 +17,10 @@ specific language governing permissions and limitations
under the License.
-->
<model>
<model xmlns="http://modello.codehaus.org/MODELLO/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.0.0 http://modello.codehaus.org/xsd/modello-1.0.0.xsd"
xml.namespace="http://maven.apache.org/LIFECYCLE/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/lifecycle-${version}.xsd">
<id>lifecycle-mappings</id>
<name>LifecycleMappings</name>
<description><![CDATA[
@ -35,10 +38,10 @@ under the License.
<version>1.0.0</version>
<description>Root element of the lifecycle.xml file.</description>
<fields>
<field xml.listStyle="flat">
<field>
<name>lifecycles</name>
<version>1.0.0</version>
<association>
<association xml.itemsStyle="flat">
<type>Lifecycle</type>
<multiplicity>*</multiplicity>
</association>

View File

@ -17,8 +17,10 @@ specific language governing permissions and limitations
under the License.
-->
<model xsd.namespace="http://maven.apache.org/PROFILES/1.0.0"
xsd.target-namespace="http://maven.apache.org/PROFILES/1.0.0">
<model xmlns="http://modello.codehaus.org/MODELLO/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.0.0 http://modello.codehaus.org/xsd/modello-1.0.0.xsd"
xml.namespace="http://maven.apache.org/PROFILES/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/profiles-${version}.xsd">
<id>profiles</id>
<name>Profiles</name>
<description><![CDATA[

View File

@ -19,8 +19,10 @@
under the License.
-->
<model xsd.namespace="http://maven.apache.org/TOOLCHAINS/1.0.0"
xsd.target-namespace="http://maven.apache.org/TOOLCHAINS/1.0.0">
<model xmlns="http://modello.codehaus.org/MODELLO/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.0.0 http://modello.codehaus.org/xsd/modello-1.0.0.xsd"
xml.namespace="http://maven.apache.org/TOOLCHAINS/${version}"
xml.schemaLocation="http://maven.apache.org/xsd/toolchains-${version}.xsd">
<id>maven-toolchains</id>
<name>MavenToolchains</name>
<description><![CDATA[
@ -41,11 +43,11 @@
]]></description>
<version>1.0.0+</version>
<fields>
<field xml.listStyle="flat">
<field>
<name>toolchains</name>
<version>1.0.0+</version>
<description><![CDATA[The toolchain definition.]]></description>
<association>
<association xml.itemsStyle="flat">
<type>ToolchainModel</type>
<multiplicity>*</multiplicity>
</association>