aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-12-02 04:52:12 +0000
committerBrett Porter <brett@apache.org>2009-12-02 04:52:12 +0000
commit92ff5796fc73cea1ea490a1c91d9f752a7f983eb (patch)
treea5c453fa7b95e955ba0a48e994d2a4dfb82b5a7b /archiva-modules/metadata
parentb4a510f1cdfefd9edfe6847798519704377a7d4c (diff)
downloadarchiva-92ff5796fc73cea1ea490a1c91d9f752a7f983eb.tar.gz
archiva-92ff5796fc73cea1ea490a1c91d9f752a7f983eb.zip
[MRM-1025] add references to the content model
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@886049 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r--archiva-modules/metadata/content-model.txt38
1 files changed, 35 insertions, 3 deletions
diff --git a/archiva-modules/metadata/content-model.txt b/archiva-modules/metadata/content-model.txt
index 007c9e552..a2c2a5b7d 100644
--- a/archiva-modules/metadata/content-model.txt
+++ b/archiva-modules/metadata/content-model.txt
@@ -18,7 +18,7 @@ The following is the intended content model for the metadata content repository:
| | | | |-- asc=
| | | | |-- created=
| | | | |-- maven:buildNumber=
- | | | | |-- maven:classifier=
+ | | | | |-- maven:classifier
| | | | |-- maven:timestamp=
| | | | |-- maven:type=
| | | | |-- md5=
@@ -87,12 +87,44 @@ The following is the intended content model for the metadata content repository:
| | | `-- url=
| | `-- maven:artifactId=
| `-- maven:groupId=
- `-- metadata/
+ `-- references/
+ `-- org/
+ `-- apache/
+ `-- archiva/
+ |-- parent/
+ | `-- 1/
+ | `-- references/
+ | `-- org/
+ | `-- apache/
+ | `-- archiva/
+ | |-- platform/
+ | | `-- scanner/
+ | | `-- 1.0-SNAPSHOT/
+ | | `-- referenceType=parent
+ | `-- web/
+ | `-- webapp/
+ | `-- 1.0-SNAPSHOT/
+ | `-- referenceType=parent
+ `-- platform/
+ `-- scanner/
+ `-- 1.0-SNAPSHOT/
+ `-- references/
+ `-- org/
+ `-- apache/
+ `-- archiva/
+ `-- web/
+ `-- webapp/
+ `-- 1.0-SNAPSHOT/
+ `-- referenceType=dependency
+
(To update - run "tree --dirstfirst -F" on the unpacked content-model.zip from the sandbox)
Notes:
+*) config should be reflected to an external configuration file and only stored in the content repository for purposes
+ of accessing through a REST API, for example
+
*) In the above example, we have the following coordinates:
- namespace = org.apache.archiva.platform (namespaces are of arbitrary depth, and are project namespaces, not to be
confused with JCR's item/node namespaces)
@@ -133,7 +165,7 @@ Notes:
*) created/updated timestamps may be maintained by the metadata repository implementation
*) references are stored outside the main model so that their creation doesn't imply a "stub" model - we know if the
- project exists whether a reference is created or not. References need not infer referential integrity
+ project exists whether a reference is created or not. References need not infer referential integrity.
*) some of the above needs to be reviewed before going into production. For example:
- the maven specific aspects of dependencies should become a faceted part of the content