From 2b42e39161b30bb372a8ad3eeaa135479530cf62 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sat, 17 Apr 2004 04:22:52 +0000 Subject: [PATCH] o cleaning up all the versions o can now generate distinct versions of the model git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162679 13f79535-47bb-0310-9956-ffa450edef68 --- maven-model/maven.mdo | 241 +++++++++++++++++++++++++++--------------- 1 file changed, 157 insertions(+), 84 deletions(-) diff --git a/maven-model/maven.mdo b/maven-model/maven.mdo index bf8e5e2aba..e1da2788b0 100644 --- a/maven-model/maven.mdo +++ b/maven-model/maven.mdo @@ -19,16 +19,17 @@ maven Maven - 4.0.0 Maven's model for Java project. org.apache.maven.model Model Model + 4.0.0 extend + 3.0.0+ The location of the parent project, if one exists. Values from the parent project will be the default for this project if they are left unspecified. @@ -110,7 +111,8 @@ A detailed description of the project. This element is usually specified as CDATA to enable the use of HTML tags within the description. This description is used to - generate the front page + generate the + front page of the project's web site. String @@ -258,7 +260,8 @@ This element includes the specification of reports to be included in a Maven-generated site. These reports will be run - when a user executes maven site. All of the + when a user executes + maven site. All of the reports will be included in the navigation bar for browsing in the order they are specified. @@ -297,59 +300,67 @@ - - private String packageName; + + + + private String packageName; - public void setPackage(String packageName) - { - this.packageName = packageName; - } - - public String getPackage() - { - return packageName; - } - - public String getId() - { - StringBuffer id = new StringBuffer(); - id.append( getGroupId() ); - id.append( ":" ); - id.append( getArtifactId() ); - id.append( ":" ); - id.append( getType() ); - return id.toString(); - } - - public void setId( String id ) - { - int i = id.indexOf( "+" ); - int j = id.indexOf( ":" ); - - if ( i > 0 ) + public void setPackage(String packageName) { - setGroupId( id.substring( 0, i ) ); - setArtifactId( id.replace( '+', '-' ) ); + this.packageName = packageName; } - else if ( j > 0 ) + + public String getPackage() { - setGroupId( id.substring( 0, j ) ); - setArtifactId( id.substring( j + 1 ) ); + return packageName; } - else + + public String getId() { - setGroupId( id ); - setArtifactId( id ); + StringBuffer id = new StringBuffer(); + id.append( getGroupId() ); + id.append( ":" ); + id.append( getArtifactId() ); + id.append( ":" ); + id.append( getType() ); + return id.toString(); } - } - + + + + + public void setId( String id ) + { + int i = id.indexOf( "+" ); + int j = id.indexOf( ":" ); + + if ( i > 0 ) + { + setGroupId( id.substring( 0, i ) ); + setArtifactId( id.replace( '+', '-' ) ); + } + else if ( j > 0 ) + { + setGroupId( id.substring( 0, j ) ); + setArtifactId( id.substring( j + 1 ) ); + } + else + { + setGroupId( id ); + setArtifactId( id ); + } + } + + + Branch 3.0.0 This element describes each of the branches of the - project. Each branch is described by a tag + project. Each branch is described by a + tag element @@ -371,6 +382,7 @@ nagEmailAddress + 3.0.0 An address to which notifications regarding the status of builds for this project can be sent. This is intended for use by tools @@ -414,8 +426,9 @@ This element specifies a directory containing Aspect sources of the project. The generated build system will compile the Aspects in this directory when the project is - built if Aspects have been enabled (see the Aspectj goals document). + built if Aspects have been enabled (see the + Aspectj goals document). The path given is relative to the project descriptor. String @@ -449,7 +462,8 @@ 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 - elements (described below). These resources are used to + elements (described + below). These resources are used to complete the jar file or to run unit test. java.util.List @@ -463,29 +477,35 @@ name + 3.0.0+ The full name of the contributor. String email + 3.0.0+ The email address of the contributor. String url + 3.0.0+ The URL for the homepage of the contributor. String organization + 3.0.0+ The organization to which the contributor belongs. String roles + 3.0.0+ The roles the contributor plays in the project. Each role is - describe by a role element, the body of which is a + describe by a + role element, the body of which is a role name. java.util.List @@ -493,6 +513,7 @@ timezone + 3.0.0+ The timezone the contributor is in. This is a number in the range -14 to 14. @@ -504,10 +525,6 @@ Dependency 3.0.0+ - groupId 4.0.0 true - The project group that produced the dependency, e.g. geronimo. + The project group that produced the dependency, e.g. + geronimo. String @@ -542,13 +559,14 @@ 3.0.0+ true - The version of the dependency., e.g. 3.2.1 + The version of the dependency., e.g. + 3.2.1 String url - 3.0.+ + 3.0.0+ This url will be provided to the user if the jar file cannot be downloaded from the central repository. @@ -572,8 +590,9 @@ type 3.0.0+ - Other known and recognised dependency types are: - ejb and plugin. + Other known recognised dependency types are: + ejb and + plugin. String jar @@ -586,18 +605,23 @@ mark dependencies with properties. For example the war plugin looks for a war.bundle property, and if found will include the dependency - in WEB-INF/lib. For example syntax, check the war plugin docs. + in + WEB-INF/lib. For example syntax, check the war plugin docs. java.util.Properties new Properties() - - public String getId() - { - return groupId + ":" + artifactId; - } - + + + + public String getId() + { + return groupId + ":" + artifactId; + } + + + Contributor @@ -606,6 +630,7 @@ id + 3.0.0+ The username of the developer. String @@ -635,29 +660,33 @@ name + 3.0.0+ The full legal name of the license. String url + 3.0.0+ The official url for the license text. String distribution + 3.0.0+ The primary method by which this project may be distributed. -
-
repo
-
may be downloaded from the Maven repository
-
manual
-
user must manually download and install the dependency.
-
+
+
repo
+
may be downloaded from the Maven repository
+
manual
+
user must manually download and install the dependency.
+
String
comments + 3.0.0+ the description String @@ -676,20 +705,24 @@ name + 3.0.0+ The name of the mailing list. String subscribe + 3.0.0+ The email address or link that can be used to subscribe to the mailing list. - If this is an email address, a mailto: link will automatically be created when + If this is an email address, a + mailto: link will automatically be created when the documentation is created. String unsubscribe + 3.0.0+ The email address or link that can be used to unsubscribe to the mailing list. If this is an email address, a @@ -700,6 +733,7 @@ archive + 3.0.0+ The link to a URL where you can browse the archive. String @@ -717,21 +751,26 @@ name + 3.0.0+ The full name of the organization. String url + 3.0.0+ The URL to the organization's home page. String logo + 3.0.0+ The URL to the organization's logo image. This can be an URL relative to the base directory of the generated web site, - (e.g., /images/org-logo.png) or an absolute URL - (e.g., http://my.corp/logo.png). This value is used + (e.g., + /images/org-logo.png) or an absolute URL + (e.g., + http://my.corp/logo.png). This value is used when generating the project documentation. String @@ -744,11 +783,13 @@ title + 3.0.0+ the description String packages + 3.0.0+ the description String @@ -760,12 +801,14 @@ includes + 3.0.0+ the description java.util.List new ArrayList() excludes + 3.0.0+ the description java.util.List new ArrayList() @@ -778,17 +821,20 @@ artifactId + 4.0.0 The artifact id of the project to extend. String groupId + 4.0.0 The group id of the project to extend. String version - The version of the project to extend. + 4.0.0 + The versi>on of the project to extend. String @@ -799,17 +845,20 @@ connection + 3.0.0 The source configuration management system URL that describes the repository and how to connect to the - repository. This is used by Maven when building versions + repository. This is used by Maven when + building versions from specific ID. String developerConnection + 3.0.0 Just like connection, but for developers, i.e. this scm connection will not be read only. @@ -818,6 +867,7 @@ url + 3.0.0 The URL to the project's browsable CVS repository. String @@ -829,17 +879,20 @@ connection + 4.0.0 The source configuration management system URL that describes the repository and how to connect to the - repository. This is used by Maven when building versions + repository. This is used by Maven when + building versions from specific ID. String developerConnection + 4.0.0 Just like connection, but for developers, i.e. this scm connection will not be read only. @@ -848,6 +901,7 @@ url + 4.0.0 The URL to the project's browsable CVS repository. String @@ -860,6 +914,7 @@ directory + 3.0.0+ Describe the directory where the resource is stored. The path may be absolute, or relative to the project.xml file. @@ -868,15 +923,19 @@ targetPath + 3.0.0+ Describe the resource target path. For example, if you want that resource - appear into a specific package (org.apache.maven.messages), you must specify this - element with this value : org/apache/maven/messages + appear into a specific package ( + org.apache.maven.messages), you must specify this + element with this value : + org/apache/maven/messages String filtering + 3.0.0+ Describe if resources are filtered or not. String false @@ -890,8 +949,10 @@ className + 3.0.0+ - If the class with this name can not be + If the class with this name can + not be loaded, then the includes and excludes specified below will be applied to the contents of the sourceDirectory @@ -900,6 +961,7 @@ property + 3.0.0+ the description String @@ -912,6 +974,7 @@ resources + 3.0.0+ the description java.util.List new ArrayList() @@ -923,20 +986,26 @@ 3.0.0 This element describes each of the previous versions of the - project. Each version is described by a version + project. Each version is described by a + version element name + 3.0.0 The external version number under which this release was distributed. Examples include: - 1.0, 1.1-alpha1, 1.2-beta, 1.3.2 etc. + 1.0, + 1.1-alpha1, + 1.2-beta, + 1.3.2 etc. String tag + 3.0.0 The name given in the version control system (e.g. cvs) used by the project for the source code associated with this version of the project. @@ -945,9 +1014,13 @@ id + 3.0.0 A unique identifier for a version. This ID is - used to specify the version that maven:dist builds. + used to specify the version that + + maven:dist + builds. String