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
This commit is contained in:
Jason van Zyl 2006-11-05 02:43:13 +00:00
parent 11827a2dd5
commit 8ba1f8eb97

View File

@ -273,6 +273,7 @@ private boolean validateMetadata( Metadata metadata, RepositoryMetadata reposito
String snapshotKey = null;
String versionKey = null;
String versionsKey = null;
if ( repositoryMetadata.storedInGroupDirectory() )
{
groupIdKey = "failure.incorrect.groupMetadata.groupId";
@ -407,8 +408,10 @@ private boolean copyPom( Artifact artifact, ArtifactRepository targetRepository,
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 )
{