From 2ee0a9bc84e606010027d95ae838f87d24313395 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 29 May 2007 19:47:26 +0000 Subject: [PATCH] [MRM-380]: When trying to look at project with empty groupId Update for exception on Roles and JDODetachedFieldException git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@542634 13f79535-47bb-0310-9956-ffa450edef68 --- .../ProjectModelToDatabaseConsumer.java | 7 +++++ .../src/main/mdo/archiva-base.xml | 26 ++++++++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java b/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java index 334ac7ae0..763c2c2ba 100644 --- a/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java +++ b/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java @@ -192,6 +192,13 @@ public class ProjectModelToDatabaseConsumer getLogger().warn( "Unable to save project model " + artifactFile + " to the database : " + e.getMessage(), e ); } + catch ( Throwable t ) + { + // Catch the other errors in the process to allow the rest of the process to complete. + getLogger().error( + "Unable to process model " + artifactFile + " due to : " + t.getClass().getName() + + " : " + t.getMessage(), t ); + } } private boolean hasProjectModelInDatabase( String groupId, String artifactId, String version ) 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 00d1e17e6..314fee477 100644 --- a/archiva-base/archiva-model/src/main/mdo/archiva-base.xml +++ b/archiva-base/archiva-model/src/main/mdo/archiva-base.xml @@ -197,6 +197,7 @@ @@ -399,6 +400,7 @@ @@ -526,6 +528,7 @@ @@ -694,6 +697,7 @@ SnapshotVersion The Snapshot Version @@ -737,6 +741,7 @@ --> ProjectReference A reference to another (unversioned) Project @@ -798,6 +803,7 @@ VersionedReference A reference to another Versioned Project @@ -870,6 +876,7 @@ ArtifactReference 1.0.0+ @@ -986,6 +993,7 @@ @@ -1289,6 +1297,7 @@ MailingList A Mailing List @@ -1345,6 +1354,7 @@ Organization Specifies the organization that produces this project. @@ -1387,6 +1397,7 @@ License IssueManagement @@ -1468,7 +1480,7 @@ - + CiManagement 1.0.0+ @@ -1498,7 +1510,8 @@ - + Individual Description of a person who has contributed to the project. @@ -1564,7 +1577,8 @@ described by a role element, the body of which is a role name. This can also be used to describe the contribution. ]]> - + String * @@ -1601,6 +1615,7 @@ Dependency 1.0.0+ @@ -1781,6 +1796,7 @@ Exclusion 1.0.0+ @@ -1811,6 +1827,7 @@ Scm 1.0.0+ @@ -1856,6 +1873,7 @@ ProjectRepository 1.0.0+ @@ -1939,6 +1957,7 @@ --> RepositoryProblem 1.0.0+ @@ -2038,6 +2057,7 @@ --> RepositoryContentStatistics 1.0.0+ -- 2.39.5