From: Jason van Zyl Date: Sun, 5 Nov 2006 02:43:13 +0000 (+0000) Subject: MRM-219 Convert a POM even if the checksum for the POM is incorrect X-Git-Tag: archiva-0.9-alpha-1~380 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ba1f8eb9771bf27939831122c4772f65c663e2a;p=archiva.git MRM-219 Convert a POM even if the checksum for the POM is incorrect git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471342 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-converter/src/main/java/org/apache/maven/archiva/converter/DefaultRepositoryConverter.java b/archiva-converter/src/main/java/org/apache/maven/archiva/converter/DefaultRepositoryConverter.java index 10cb3c9d7..5271e24c5 100644 --- a/archiva-converter/src/main/java/org/apache/maven/archiva/converter/DefaultRepositoryConverter.java +++ b/archiva-converter/src/main/java/org/apache/maven/archiva/converter/DefaultRepositoryConverter.java @@ -273,6 +273,7 @@ public class DefaultRepositoryConverter String snapshotKey = null; String versionKey = null; String versionsKey = null; + if ( repositoryMetadata.storedInGroupDirectory() ) { groupIdKey = "failure.incorrect.groupMetadata.groupId"; @@ -407,8 +408,10 @@ public class DefaultRepositoryConverter if ( testChecksums( artifact, file, reporter ) ) { checksumsValid = true; - contents = FileUtils.fileRead( file ); } + + // Even if the checksums for the POM are invalid we should still convert the POM + contents = FileUtils.fileRead( file ); } catch ( IOException e ) {