From 188fc983557c5832a4d3548b42e9185636c860df Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Mon, 8 Mar 2004 01:31:17 +0000 Subject: [PATCH] Initial revision git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162574 13f79535-47bb-0310-9956-ffa450edef68 --- maven-model/.cvsignore | 9 + maven-model/build.sh | 13 + maven-model/maven.mdo | 558 ++++++++++++++++++++++++++++++++++++++++ maven-model/maven.xml | 1 + maven-model/project.xml | 60 +++++ 5 files changed, 641 insertions(+) create mode 100644 maven-model/.cvsignore create mode 100755 maven-model/build.sh create mode 100644 maven-model/maven.mdo create mode 100644 maven-model/maven.xml create mode 100644 maven-model/project.xml diff --git a/maven-model/.cvsignore b/maven-model/.cvsignore new file mode 100644 index 0000000000..30b972811e --- /dev/null +++ b/maven-model/.cvsignore @@ -0,0 +1,9 @@ +*.log +target +.classpath +.project +default.lst +test.out +default.ajsym +*.ipr +*.iws diff --git a/maven-model/build.sh b/maven-model/build.sh new file mode 100755 index 0000000000..ac41a9b70b --- /dev/null +++ b/maven-model/build.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Generate the sources from the model +modello --model=maven.mdo --mode=java --dir=src/main/java + +# Build the sources +mboot + +# Generate XML Schema +modello --model=maven.mdo --mode=xsd --dir=. + +# Generate XDoc +modello --model=maven.mdo --mode=xdoc --dir=. diff --git a/maven-model/maven.mdo b/maven-model/maven.mdo new file mode 100644 index 0000000000..b1700772c3 --- /dev/null +++ b/maven-model/maven.mdo @@ -0,0 +1,558 @@ + + Maven + the description + org.apache.maven.model + + + Model + + + extend + The model you wish this model to extend. + String + + + modelVersion + The version of this model. + String + + + groupId + the description + String + + + artifactId + the description + String + + + name + Human readable name of the project. + String + + + version + the description + String + + + shortDescription + the description + String + + + description + the description + String + + + type + the description + String + + + url + the description + String + + + logo + the description + String + + + issueTrackingUrl + the description + String + + + inceptionYear + the description + String + + + gumpRepositoryId + the description + String + + + siteAddress + the description + String + + + siteDirectory + the description + String + + + + distributionSite + the description + String + + + distributionDirectory + the description + String + + + mailingLists + the description + java.util.List + new ArrayList() + + + developers + the description + java.util.List + new ArrayList() + + + contributors + the description + java.util.List + new ArrayList() + + + dependencies + the description + java.util.List + new ArrayList() + + + licenses + the description + java.util.List + new ArrayList() + + + versions + the description + java.util.List + new ArrayList() + + + branches + the description + java.util.List + new ArrayList() + + + packageGroups + the description + java.util.List + new ArrayList() + + + reports + the description + java.util.List + new ArrayList() + + + versionMap + the description + java.util.Map + new HashMap() + + + repository + the description + Repository + + + build + the description + Build + + + organization + the description + Organization + + + + + 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 ) + { + 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 + + + tag + the description + String + + + + + Build + + + nagEmailAddress + the description + String + + + sourceDirectory + the description + String + + + unitTestSourceDirectory + the description + String + + + aspectSourceDirectory + the description + String + + + sourceModifications + the description + java.util.List + new ArrayList() + + + unitTest + the description + UnitTest + new UnitTest() + + + resources + the description + java.util.List + new ArrayList() + + + + + Contributor + + + name + the description + String + + + email + the description + String + + + url + the description + String + + + organization + the description + String + + + roles + the description + java.util.SortedSet + new TreeSet() + + + + + Dependency + + + groupId + the description + String + + + artifactId + the description + String + + + version + the description + String + + + url + the description + String + + + artifact + the description + String + + + type + The type of dependency. + String + jar + + + properties + Properties for this dependency. + java.util.Properties + new Properties() + + + + public String getId() + { + return groupId + ":" + artifactId; + } + + + + Contributor + Developer + + + id + the description + String + + + + + License + + + name + the description + String + + + url + the description + String + + + distribution + the description + String + + + comments + the description + String + + + + + MailingList + + + name + the description + String + + + subscribe + the description + String + + + unsubscribe + the description + String + + + archive + the description + String + + + + + Organization + + + name + the description + String + + + url + the description + String + + + logo + the description + String + + + + + PackageGroup + + + title + the description + String + + + packages + the description + String + + + + + PatternSet + + + includes + the description + java.util.List + new ArrayList() + + + excludes + the description + java.util.List + new ArrayList() + + + + + Repository + + + connection + the description + String + + + developerConnection + the description + String + + + url + the description + String + + + + + Resource + PatternSet + + + directory + the description + String + + + targetPath + the description + String + + + filtering + the description + boolean + + + + + SourceModification + Resource + + + className + the description + String + + + property + the description + String + + + + + UnitTest + PatternSet + + + resources + the description + java.util.List + new ArrayList() + + + + + Version + + + name + the description + String + + + tag + String + + + id + the description + String + + + + + diff --git a/maven-model/maven.xml b/maven-model/maven.xml new file mode 100644 index 0000000000..d8a22b2705 --- /dev/null +++ b/maven-model/maven.xml @@ -0,0 +1 @@ + diff --git a/maven-model/project.xml b/maven-model/project.xml new file mode 100644 index 0000000000..036485708a --- /dev/null +++ b/maven-model/project.xml @@ -0,0 +1,60 @@ + + + + 3 + Maven Model + maven + maven-model + maven-model + 2.0-SNAPSHOT + jakarta + Maven is a project management and project comprehension tool. Maven is based on the concept of a project object model: builds, documentation creation, site publication, and distribution publication are all controlled from the project object model. Maven also provides tools to create source metrics, change logs based directly on source repository, and source cross-references. + Java Project Management Tools + + + + + + + Jason van Zyl + jvanzyl + jason@zenplex.com + Zenplex + + Java Developer + + + + Brett Porter + brett + brett@apache.org + f2 network + + Java Developer + + +10 + + + + + + + + + + dev@maven.apache.org + src/main/java + src/test + + + **/*Test.java + + + + + + maven-changelog-plugin + maven-javadoc-plugin + maven-jxr-plugin + +