]> source.dussan.org Git - archiva.git/commitdiff
MRM-219 Convert a POM even if the checksum for the POM is incorrect
authorJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 02:43:13 +0000 (02:43 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 02:43:13 +0000 (02:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471342 13f79535-47bb-0310-9956-ffa450edef68

archiva-converter/src/main/java/org/apache/maven/archiva/converter/DefaultRepositoryConverter.java

index 10cb3c9d71037085fc83f481ee15c8b2eacf9175..5271e24c5fa859797658c66975a59002d6279740 100644 (file)
@@ -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 )
             {