From cbfd3f256f0efd67f56f2654ad105c42f1e27dcf Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 30 Dec 2020 18:36:42 +0100 Subject: [PATCH] Fixing jackson error for properties attribute --- .../maven/metadata/storage/Maven2RepositoryStorage.java | 2 +- .../archiva/metadata/model/ProjectVersionMetadata.java | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/metadata/storage/Maven2RepositoryStorage.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/metadata/storage/Maven2RepositoryStorage.java index 32dd9e460..7ebbe93cf 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/metadata/storage/Maven2RepositoryStorage.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/metadata/storage/Maven2RepositoryStorage.java @@ -355,7 +355,7 @@ public class Maven2RepositoryStorage metadata.setOrganization(convertOrganization(model.getOrganization())); metadata.setScm(convertScm(model.getScm())); metadata.setUrl(model.getUrl()); - metadata.setProperties(model.getProperties()); + metadata.setProperties( new HashMap( (Map) model.getProperties( ) ) ); MavenProjectFacet facet = new MavenProjectFacet(); facet.setGroupId(model.getGroupId() != null ? model.getGroupId() : model.getParent().getGroupId()); diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java index 1183532e2..c6b749d6c 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java @@ -199,12 +199,6 @@ public class ProjectVersionMetadata this.properties = properties; } - @SuppressWarnings( { "unchecked", "rawtypes" } ) - public void setProperties( Properties properties ) - { - setProperties( new HashMap((Map) properties ) ); - } - public boolean isIncomplete() { return incomplete; -- 2.39.5