From ec549451bb1e3c36ec4299d9925378c69ed3b654 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 21 May 2007 23:01:36 +0000 Subject: [PATCH] [MRM-346]: Show Artifact results in error 500. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@540343 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/model/AbstractArtifactKey.java | 2 + .../archiva/model/AbstractProjectKey.java | 2 + .../archiva/model/AbstractVersionedKey.java | 2 + .../jpox/ArchivaArtifactJavaDetailsKey.java | 1 + .../model/jpox/ArchivaArtifactModelKey.java | 2 + .../model/jpox/ArchivaProjectModelKey.java | 1 + .../jpox/ArchivaRepositoryMetadataKey.java | 1 + .../model/jpox/ArtifactReferenceKey.java | 1 + .../model/jpox/ProjectReferenceKey.java | 2 + .../model/jpox/VersionedReferenceKey.java | 1 + .../src/main/mdo/archiva-base.xml | 166 +++++++++++++++++ .../readers/ProjectModel400Reader.java | 12 +- archiva-database/pom.xml | 5 + .../maven/archiva/database/jdo/JdoAccess.java | 25 +++ .../database/jdo/JdoProjectModelDAOTest.java | 33 ++++ .../maven-shared-jar-1.0-SNAPSHOT.pom | 175 ++++++++++++++++++ 16 files changed, 425 insertions(+), 6 deletions(-) create mode 100644 archiva-database/src/test/resources/projects/maven-shared-jar-1.0-SNAPSHOT.pom diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractArtifactKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractArtifactKey.java index d31be8a92..a1edd0cb5 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractArtifactKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractArtifactKey.java @@ -79,6 +79,8 @@ import java.io.Serializable; public class AbstractArtifactKey implements CompoundKey, Serializable { + private static final long serialVersionUID = 1084250769223555422L; + /** * The Group ID. (JPOX Requires this remain public) */ diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractProjectKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractProjectKey.java index 1eb79c1f7..1e19e0e89 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractProjectKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractProjectKey.java @@ -79,6 +79,8 @@ import java.io.Serializable; public class AbstractProjectKey implements CompoundKey, Serializable { + private static final long serialVersionUID = 4949927971768396064L; + /** * The Group ID. (JPOX Requires this remain public) */ diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractVersionedKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractVersionedKey.java index 845b16f81..36aa6df9d 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractVersionedKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/AbstractVersionedKey.java @@ -79,6 +79,8 @@ import java.io.Serializable; public class AbstractVersionedKey implements CompoundKey, Serializable { + private static final long serialVersionUID = -5389698374243146150L; + /** * The Group ID. (JPOX Requires this remain public) */ diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactJavaDetailsKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactJavaDetailsKey.java index 59fbc6b11..9a15583f5 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactJavaDetailsKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactJavaDetailsKey.java @@ -33,6 +33,7 @@ public class ArchivaArtifactJavaDetailsKey extends AbstractArtifactKey implements Serializable { + private static final long serialVersionUID = -2565748477203220905L; public ArchivaArtifactJavaDetailsKey() { diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactModelKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactModelKey.java index 4fdf974e2..13722abaa 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactModelKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaArtifactModelKey.java @@ -33,6 +33,8 @@ public class ArchivaArtifactModelKey extends AbstractArtifactKey implements Serializable { + private static final long serialVersionUID = -6381910527697704289L; + public ArchivaArtifactModelKey() { super(); diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaProjectModelKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaProjectModelKey.java index cdda128cd..e3e451d8e 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaProjectModelKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaProjectModelKey.java @@ -33,6 +33,7 @@ public class ArchivaProjectModelKey extends AbstractVersionedKey implements Serializable { + private static final long serialVersionUID = 7789859208617327581L; public ArchivaProjectModelKey() { diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaRepositoryMetadataKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaRepositoryMetadataKey.java index d329ef0a5..8d9743c5c 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaRepositoryMetadataKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArchivaRepositoryMetadataKey.java @@ -33,6 +33,7 @@ public class ArchivaRepositoryMetadataKey extends AbstractVersionedKey implements Serializable { + private static final long serialVersionUID = -7288079965200698253L; public ArchivaRepositoryMetadataKey() { diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArtifactReferenceKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArtifactReferenceKey.java index 41110b1b4..026ff95a5 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArtifactReferenceKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ArtifactReferenceKey.java @@ -33,6 +33,7 @@ public class ArtifactReferenceKey extends AbstractArtifactKey implements Serializable { + private static final long serialVersionUID = 2107985498806534183L; public ArtifactReferenceKey() { diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ProjectReferenceKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ProjectReferenceKey.java index 1c99c740f..1c84f4beb 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ProjectReferenceKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/ProjectReferenceKey.java @@ -33,6 +33,8 @@ public class ProjectReferenceKey extends AbstractProjectKey implements Serializable { + private static final long serialVersionUID = 7803774484166902823L; + public ProjectReferenceKey() { super(); diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/VersionedReferenceKey.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/VersionedReferenceKey.java index 094307c9e..264fe8dd2 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/VersionedReferenceKey.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/jpox/VersionedReferenceKey.java @@ -33,6 +33,7 @@ public class VersionedReferenceKey extends AbstractVersionedKey implements Serializable { + private static final long serialVersionUID = -5040195285240958302L; public VersionedReferenceKey() { diff --git a/archiva-base/archiva-model/src/main/mdo/archiva-base.xml b/archiva-base/archiva-model/src/main/mdo/archiva-base.xml index 244bc41f4..ffab35ce8 100644 --- a/archiva-base/archiva-model/src/main/mdo/archiva-base.xml +++ b/archiva-base/archiva-model/src/main/mdo/archiva-base.xml @@ -74,6 +74,14 @@ + + + 1.0.0+ + + + + + + 4.0.0 + + + org.apache.maven.shared + maven-shared-components + 3 + + + maven-shared-jar + jar + 1.0-SNAPSHOT + + Maven Shared Jar Utils + + + scm:svn:http://svn.apache.org/repos/asf/maven/sandbox/maven-shared-jar + scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/maven-shared-jar + http://svn.apache.org/viewcvs.cgi/maven/sandbox/maven-shared-jar + + + + + + org.codehaus.plexus + plexus-maven-plugin + + + + descriptor + + + + + + org.codehaus.mojo + cobertura-maven-plugin + + + + clean + + + + + + + + + + + maven-project-info-reports-plugin + + + maven-javadoc-plugin + + + maven-surefire-report-plugin + + + org.codehaus.mojo + changelog-maven-plugin + + + + maven-jxr-plugin + + + maven-checkstyle-plugin + + + maven-pmd-plugin + + true + + rulesets/basic.xml + rulesets/codesize.xml + rulesets/controversial.xml + rulesets/coupling.xml + rulesets/finalizers.xml + rulesets/imports.xml + rulesets/junit.xml + rulesets/logging-jakarta-commons.xml + rulesets/naming.xml + rulesets/optimizations.xml + rulesets/strictexception.xml + rulesets/strings.xml + rulesets/sunsecure.xml + rulesets/unusedcode.xml + + + + + org.codehaus.mojo + cobertura-maven-plugin + + + + + + + snapshots.codehaus + http://snapshots.repository.codehaus.org/ + + false + + + true + + + + + + + org.apache.maven + maven-model + 2.0.2 + compile + + + + org.apache.maven + maven-artifact-manager + 2.0.2 + compile + + + + org.codehaus.plexus + plexus-digest + 1.0 + + + + org.apache.bcel + bcel + 5.2 + compile + + + + commons-collections + commons-collections + 3.1 + compile + + + + +