aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-12-30 18:36:42 +0100
committerMartin Stockhammer <martin_s@apache.org>2020-12-30 18:36:42 +0100
commitcbfd3f256f0efd67f56f2654ad105c42f1e27dcf (patch)
tree7604447dfadee9e05546bccdc83cd32f22d3e4d5 /archiva-modules
parentd6a63099a130ed39f9bbec65a821e139411fb31b (diff)
downloadarchiva-cbfd3f256f0efd67f56f2654ad105c42f1e27dcf.tar.gz
archiva-cbfd3f256f0efd67f56f2654ad105c42f1e27dcf.zip
Fixing jackson error for properties attribute
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/metadata/storage/Maven2RepositoryStorage.java2
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java6
2 files changed, 1 insertions, 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<String, String>( (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<String, String>((Map) properties ) );
- }
-
public boolean isIncomplete()
{
return incomplete;