From cbfd3f256f0efd67f56f2654ad105c42f1e27dcf Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 30 Dec 2020 18:36:42 +0100 Subject: Fixing jackson error for properties attribute --- .../repository/maven/metadata/storage/Maven2RepositoryStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archiva-modules/archiva-maven/archiva-maven-repository') 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()); -- cgit v1.2.3