]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1282] add a draft content model
authorBrett Porter <brett@apache.org>
Fri, 20 Nov 2009 05:07:04 +0000 (05:07 +0000)
committerBrett Porter <brett@apache.org>
Fri, 20 Nov 2009 05:07:04 +0000 (05:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@882417 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/metadata/content-model.txt [new file with mode: 0644]

diff --git a/archiva-modules/metadata/content-model.txt b/archiva-modules/metadata/content-model.txt
new file mode 100644 (file)
index 0000000..a14d8d2
--- /dev/null
@@ -0,0 +1,45 @@
+The following is the intended content model for the metadata content repository:
+
+.
+`-- repositories/
+    `-- central/
+        |-- config/
+        |   |-- name=
+        |   |-- storageUrl=
+        |   `-- uri=
+        |-- content/
+        |   `-- org/
+        |       `-- apache/
+        |           `-- archiva/
+        |               `-- platform/ -- these are known as "organizational units", of arbitrary depth. Equiv to groupId in Maven
+        |                   `-- scanner/ -- this is the project - equivalent to artifactId in Maven
+        |                       |-- 1.0-SNAPSHOT/ -- this is the version best used to describe the project ("marketed version")
+        |                       |   |-- scanner-1.0-20091120.012345-1.pom/ -- filename is a node, each is distinct except for checksums, etc.
+        |                       |   |   |-- asc=
+        |                       |   |   |-- maven:buildNumber=
+        |                       |   |   |-- maven:packaging=
+        |                       |   |   |-- maven:timestamp=
+        |                       |   |   |-- md5=
+        |                       |   |   |-- sha1=
+        |                       |   |   `-- version= -- the actual version of the file
+        |                       |   |-- created=
+        |                       |   |-- description=
+        |                       |   |-- name=
+        |                       |   |-- organizationName=
+        |                       |   |-- organizationUrl=
+        |                       |   `-- updated=
+        |                       |-- maven:artifactId=
+        |                       `-- maven:groupId=
+        `-- metadata/
+
+(To update - run "tree --dirstfirst -F" on the unpacked content-model.zip from the sandbox)
+
+Notes: 
+
+1) Projects are just a single code project. They do not have subprojects - if such modeling needs to be done, then we can create a products
+tree that will map what "Archiva 1.0" contains from the other repositories.
+
+2) There is not Maven-native information here, other than that in the maven: namespace. pom & other files are not treated as special - they are
+each stored and it is up to the reader to interpret
+
+