mirror of
https://github.com/apache/archiva.git
synced 2025-03-01 05:59:17 +00:00
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:
parent
11827a2dd5
commit
8ba1f8eb97
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user