o adding versions to all fields and elements so that I can output distinct

versions of the model.

o adding required elements where appropriate so the generated XSD is
  correct.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-04-16 21:48:24 +00:00
parent b5468d3e2b
commit a7c579dabf

View File

@ -46,23 +46,27 @@
<field> <field>
<name>modelVersion</name> <name>modelVersion</name>
<version>4.0.0</version> <version>4.0.0</version>
<required>true</required>
<description>The version of this model you are using.</description> <description>The version of this model you are using.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>pomVersion</name> <name>pomVersion</name>
<version>3.0.0</version> <version>3.0.0</version>
<required>true</required>
<delegateTo>modelVersion</delegateTo> <delegateTo>modelVersion</delegateTo>
</field> </field>
<field> <field>
<name>groupId</name> <name>groupId</name>
<version>3.0.0</version> <version>3.0.0</version>
<required>true</required>
<description>The primary grouping for your project.</description> <description>The primary grouping for your project.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>artifactId</name> <name>artifactId</name>
<version>3.0.0</version> <version>3.0.0</version>
<required>true</required>
<description>The identifier used when generating the artifact for your project.</description> <description>The identifier used when generating the artifact for your project.</description>
<type>String</type> <type>String</type>
</field> </field>
@ -76,17 +80,20 @@
<field> <field>
<name>name</name> <name>name</name>
<version>3.0.0</version> <version>3.0.0</version>
<required>true</required>
<description>Human readable name of the project.</description> <description>Human readable name of the project.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>currentVersion</name> <name>currentVersion</name>
<version>3.0.0</version> <version>3.0.0</version>
<required>true</required>
<delegateTo>version</delegateTo> <delegateTo>version</delegateTo>
</field> </field>
<field> <field>
<name>version</name> <name>version</name>
<version>4.0.0</version> <version>4.0.0</version>
<required>true</required>
<description>The current version of the project.</description> <description>The current version of the project.</description>
<type>String</type> <type>String</type>
</field> </field>
@ -129,44 +136,52 @@
<field> <field>
<name>inceptionYear</name> <name>inceptionYear</name>
<version>3.0.0</version> <version>3.0.0</version>
<required>true</required>
<description>The year the project started.</description> <description>The year the project started.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>gumpRepositoryId</name> <name>gumpRepositoryId</name>
<version>3.0.0</version>
<description>Hint for the gump continuous integration build system.</description> <description>Hint for the gump continuous integration build system.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>siteAddress</name> <name>siteAddress</name>
<version>3.0.0</version>
<description>The FQDN of the host where the project's site is uploaded.</description> <description>The FQDN of the host where the project's site is uploaded.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>siteDirectory</name> <name>siteDirectory</name>
<version>3.0.0</version>
<description>The directory on the site host where site documentation is placed when the site is uploaded.</description> <description>The directory on the site host where site documentation is placed when the site is uploaded.</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>distributionSite</name> <name>distributionSite</name>
<version>3.0.0</version>
<description>The FQDN of the host where the project's artifacts are uploaded.</description> <description>The FQDN of the host where the project's artifacts are uploaded.</description>
<type>String</type> <type>String</type>
<comment>This naming is inconsistent and distriubtion should occur from a repository structure.</comment> <comment>This naming is inconsistent and distriubtion should occur from a repository structure.</comment>
</field> </field>
<field> <field>
<name>distributionDirectory</name> <name>distributionDirectory</name>
<version>3.0.0</version>
<description>The directory on the distribution host where artifacts are placed when uploaded.</description> <description>The directory on the distribution host where artifacts are placed when uploaded.</description>
<type>String</type> <type>String</type>
<comment>This naming is inconsistent and distriubtion should occur from a repository structure.</comment> <comment>This naming is inconsistent and distriubtion should occur from a repository structure.</comment>
</field> </field>
<field> <field>
<name>mailingLists</name> <name>mailingLists</name>
<version>3.0.0+</version>
<description>The mailing lists for the project.</description> <description>The mailing lists for the project.</description>
<type>java.util.List</type> <type>java.util.List</type>
<defaultValue>new ArrayList()</defaultValue> <defaultValue>new ArrayList()</defaultValue>
</field> </field>
<field> <field>
<name>developers</name> <name>developers</name>
<version>3.0.0+</version>
<description> <description>
This element describes all of the developers associated with a This element describes all of the developers associated with a
project. Each developer is described by a project. Each developer is described by a
@ -179,6 +194,7 @@
</field> </field>
<field> <field>
<name>contributors</name> <name>contributors</name>
<version>3.0.0+</version>
<description> <description>
This element describes all of the contributors associated with a This element describes all of the contributors associated with a
project who are not developers. Each contributor is described by a project who are not developers. Each contributor is described by a
@ -191,6 +207,7 @@
</field> </field>
<field> <field>
<name>dependencies</name> <name>dependencies</name>
<version>3.0.0+</version>
<description> <description>
This element describes all of the dependencies associated with a This element describes all of the dependencies associated with a
project. Each dependency is described by a project. Each dependency is described by a
@ -203,6 +220,7 @@
</field> </field>
<field> <field>
<name>licenses</name> <name>licenses</name>
<version>3.0.0+</version>
<description> <description>
This element describes all of the licenses for this project. Each license is described by a This element describes all of the licenses for this project. Each license is described by a
<code>license</code> element, which is then describe by additional <code>license</code> element, which is then describe by additional
@ -215,24 +233,28 @@
</field> </field>
<field> <field>
<name>versions</name> <name>versions</name>
<version>3.0.0</version>
<description>The released versions of the project.</description> <description>The released versions of the project.</description>
<type>java.util.List</type> <type>java.util.List</type>
<defaultValue>new ArrayList()</defaultValue> <defaultValue>new ArrayList()</defaultValue>
</field> </field>
<field> <field>
<name>branches</name> <name>branches</name>
<version>3.0.0</version>
<description>The SCM branches create for the project.</description> <description>The SCM branches create for the project.</description>
<type>java.util.List</type> <type>java.util.List</type>
<defaultValue>new ArrayList()</defaultValue> <defaultValue>new ArrayList()</defaultValue>
</field> </field>
<field> <field>
<name>packageGroups</name> <name>packageGroups</name>
<version>3.0.0+</version>
<description>Package groups required for complete javadocs.</description> <description>Package groups required for complete javadocs.</description>
<type>java.util.List</type> <type>java.util.List</type>
<defaultValue>new ArrayList()</defaultValue> <defaultValue>new ArrayList()</defaultValue>
</field> </field>
<field> <field>
<name>reports</name> <name>reports</name>
<version>3.0.0+</version>
<description> <description>
This element includes the specification of reports to be This element includes the specification of reports to be
included in a Maven-generated site. These reports will be run included in a Maven-generated site. These reports will be run
@ -245,17 +267,27 @@
</field> </field>
<field> <field>
<name>scm</name> <name>scm</name>
<version>4.0.0</version>
<description>Specification for the SCM use by the project.</description> <description>Specification for the SCM use by the project.</description>
<type>Scm</type> <type>Scm</type>
</field>
<field>
<name>repository</name>
<version>3.0.0</version>
<description>Specification for the SCM use by the project.</description>
<type>Repository</type>
<comment>This element needs to be renamed as it conflicts with the existing notion of repositories in Maven.</comment> <comment>This element needs to be renamed as it conflicts with the existing notion of repositories in Maven.</comment>
</field> </field>
<field> <field>
<name>build</name> <name>build</name>
<version>3.0.0+</version>
<required>true</required>
<description>Information required to build the project.</description> <description>Information required to build the project.</description>
<type>Build</type> <type>Build</type>
</field> </field>
<field> <field>
<name>organization</name> <name>organization</name>
<version>3.0.0+</version>
<description> <description>
This element describes various attributes of the organziation to This element describes various attributes of the organziation to
which the project belongs. These attributes are utilized when which the project belongs. These attributes are utilized when
@ -314,6 +346,7 @@
</class> </class>
<class> <class>
<name>Branch</name> <name>Branch</name>
<version>3.0.0</version>
<description> <description>
This element describes each of the branches of the This element describes each of the branches of the
project. Each branch is described by a <code>tag</code> project. Each branch is described by a <code>tag</code>
@ -334,6 +367,7 @@
</class> </class>
<class> <class>
<name>Build</name> <name>Build</name>
<version>3.0.0+</version>
<fields> <fields>
<field> <field>
<name>nagEmailAddress</name> <name>nagEmailAddress</name>
@ -350,6 +384,8 @@
</field> </field>
<field> <field>
<name>sourceDirectory</name> <name>sourceDirectory</name>
<version>3.0.0+</version>
<required>true</required>
<description> <description>
This element specifies a directory containing the source This element specifies a directory containing the source
of the project. The generated build system will compile of the project. The generated build system will compile
@ -360,6 +396,8 @@
</field> </field>
<field> <field>
<name>unitTestSourceDirectory</name> <name>unitTestSourceDirectory</name>
<version>3.0.0+</version>
<required>true</required>
<description> <description>
This element specifies a directory containing the unit test This element specifies a directory containing the unit test
source of the project. The generated build system will source of the project. The generated build system will
@ -371,6 +409,7 @@
</field> </field>
<field> <field>
<name>aspectSourceDirectory</name> <name>aspectSourceDirectory</name>
<version>3.0.0</version>
<description> <description>
This element specifies a directory containing Aspect This element specifies a directory containing Aspect
sources of the project. The generated build system will sources of the project. The generated build system will
@ -383,6 +422,8 @@
</field> </field>
<field> <field>
<name>sourceModifications</name> <name>sourceModifications</name>
<version>3.0.0+</version>
<required>true</required>
<description> <description>
This element describes all of the sourceModifications associated with a This element describes all of the sourceModifications associated with a
project. Each source modification is described by a project. Each source modification is described by a
@ -396,12 +437,15 @@
</field> </field>
<field> <field>
<name>unitTest</name> <name>unitTest</name>
<version>3.0.0+</version>
<required>true</required>
<description>This element specifies unit tests associated with the project.</description> <description>This element specifies unit tests associated with the project.</description>
<type>UnitTest</type> <type>UnitTest</type>
<defaultValue>new UnitTest()</defaultValue> <defaultValue>new UnitTest()</defaultValue>
</field> </field>
<field> <field>
<name>resources</name> <name>resources</name>
<version>3.0.0+</version>
<description> <description>
This element describes all of the resources associated with a project or unit tests. This element describes all of the resources associated with a project or unit tests.
Each resource is described by a resource element, which is then described by additional Each resource is described by a resource element, which is then described by additional
@ -415,6 +459,7 @@
</class> </class>
<class> <class>
<name>Contributor</name> <name>Contributor</name>
<version>3.0.0+</version>
<fields> <fields>
<field> <field>
<name>name</name> <name>name</name>
@ -457,9 +502,26 @@
</class> </class>
<class> <class>
<name>Dependency</name> <name>Dependency</name>
<version>3.0.0+</version>
<fields> <fields>
<!--
Need to put versions on code segments ...
<field>
<name>id</name>
<version>3.0.0</version>
<required>true</required>
<description>
The id of the dependency.
</description>
<type>String</type>
</field>
-->
<field> <field>
<name>groupId</name> <name>groupId</name>
<version>4.0.0</version>
<required>true</required>
<description> <description>
The project group that produced the dependency, e.g. <code>geronimo</code>. The project group that produced the dependency, e.g. <code>geronimo</code>.
</description> </description>
@ -467,6 +529,8 @@
</field> </field>
<field> <field>
<name>artifactId</name> <name>artifactId</name>
<version>4.0.0</version>
<required>true</required>
<description> <description>
The unique id for an artifact produced by the project group, e.g. The unique id for an artifact produced by the project group, e.g.
<code>germonimo-jms</code> <code>germonimo-jms</code>
@ -475,6 +539,8 @@
</field> </field>
<field> <field>
<name>version</name> <name>version</name>
<version>3.0.0+</version>
<required>true</required>
<description> <description>
The version of the dependency., e.g. <code>3.2.1</code> The version of the dependency., e.g. <code>3.2.1</code>
</description> </description>
@ -482,6 +548,7 @@
</field> </field>
<field> <field>
<name>url</name> <name>url</name>
<version>3.0.+</version>
<description> <description>
This url will be provided to the user if the jar file cannot be downloaded This url will be provided to the user if the jar file cannot be downloaded
from the central repository. from the central repository.
@ -489,13 +556,21 @@
<type>String</type> <type>String</type>
<comment>The URL should really be gleaned from a shared database of dependency information.</comment> <comment>The URL should really be gleaned from a shared database of dependency information.</comment>
</field> </field>
<field>
<name>jar</name>
<version>3.0.0</version>
<description>Literal name of the artifact.</description>
<type>String</type>
</field>
<field> <field>
<name>artifact</name> <name>artifact</name>
<description>the description</description> <version>4.0.0+</version>
<description>Literal name of the artifact</description>
<type>String</type> <type>String</type>
</field> </field>
<field> <field>
<name>type</name> <name>type</name>
<version>3.0.0+</version>
<description> <description>
Other known and recognised dependency types are: Other known and recognised dependency types are:
<code>ejb</code> and <code>plugin</code>. <code>ejb</code> and <code>plugin</code>.
@ -505,6 +580,7 @@
</field> </field>
<field> <field>
<name>properties</name> <name>properties</name>
<version>3.0.0+</version>
<description> <description>
Properties about the dependency. Various plugins allow you to Properties about the dependency. Various plugins allow you to
<code>mark</code> dependencies with properties. For example the <code>mark</code> dependencies with properties. For example the
@ -526,6 +602,7 @@
<class> <class>
<superClass>Contributor</superClass> <superClass>Contributor</superClass>
<name>Developer</name> <name>Developer</name>
<version>3.0.0+</version>
<fields> <fields>
<field> <field>
<name>id</name> <name>id</name>
@ -554,6 +631,7 @@
</class> </class>
<class> <class>
<name>License</name> <name>License</name>
<version>3.0.0+</version>
<fields> <fields>
<field> <field>
<name>name</name> <name>name</name>
@ -587,6 +665,7 @@
</class> </class>
<class> <class>
<name>MailingList</name> <name>MailingList</name>
<version>3.0.0+</version>
<description> <description>
This element describes all of the mailing lists associated with This element describes all of the mailing lists associated with
a project. Each mailing list is described by a a project. Each mailing list is described by a
@ -634,6 +713,7 @@
</class> </class>
<class> <class>
<name>Organization</name> <name>Organization</name>
<version>3.0.0+</version>
<fields> <fields>
<field> <field>
<name>name</name> <name>name</name>
@ -660,6 +740,7 @@
</class> </class>
<class> <class>
<name>PackageGroup</name> <name>PackageGroup</name>
<version>3.0.0+</version>
<fields> <fields>
<field> <field>
<name>title</name> <name>title</name>
@ -675,6 +756,7 @@
</class> </class>
<class> <class>
<name>PatternSet</name> <name>PatternSet</name>
<version>3.0.0+</version>
<fields> <fields>
<field> <field>
<name>includes</name> <name>includes</name>
@ -692,6 +774,7 @@
</class> </class>
<class> <class>
<name>Parent</name> <name>Parent</name>
<version>4.0.0</version>
<fields> <fields>
<field> <field>
<name>artifactId</name> <name>artifactId</name>
@ -710,8 +793,39 @@
</field> </field>
</fields> </fields>
</class> </class>
<class>
<name>Repository</name>
<version>3.0.0</version>
<fields>
<field>
<name>connection</name>
<description>
The source configuration management system URL
that describes the repository and how to connect to the
repository. This is used by Maven when <a
href="plugins/dist/index.html">building versions</a>
from specific ID.
</description>
<type>String</type>
</field>
<field>
<name>developerConnection</name>
<description>
Just like connection, but for developers, i.e. this scm connection
will not be read only.
</description>
<type>String</type>
</field>
<field>
<name>url</name>
<description>The URL to the project's browsable CVS repository.</description>
<type>String</type>
</field>
</fields>
</class>
<class> <class>
<name>Scm</name> <name>Scm</name>
<version>4.0.0</version>
<fields> <fields>
<field> <field>
<name>connection</name> <name>connection</name>
@ -741,6 +855,7 @@
</class> </class>
<class> <class>
<name>Resource</name> <name>Resource</name>
<version>3.0.0+</version>
<superClass>PatternSet</superClass> <superClass>PatternSet</superClass>
<fields> <fields>
<field> <field>
@ -770,6 +885,7 @@
</class> </class>
<class> <class>
<name>SourceModification</name> <name>SourceModification</name>
<version>3.0.0+</version>
<superClass>Resource</superClass> <superClass>Resource</superClass>
<fields> <fields>
<field> <field>
@ -791,6 +907,7 @@
</class> </class>
<class> <class>
<name>UnitTest</name> <name>UnitTest</name>
<version>3.0.0+</version>
<superClass>PatternSet</superClass> <superClass>PatternSet</superClass>
<fields> <fields>
<field> <field>
@ -803,6 +920,7 @@
</class> </class>
<class> <class>
<name>Version</name> <name>Version</name>
<version>3.0.0</version>
<description> <description>
This element describes each of the previous versions of the This element describes each of the previous versions of the
project. Each version is described by a <code>version</code> project. Each version is described by a <code>version</code>