diff options
author | Carlos Sanchez <carlos@apache.org> | 2014-11-21 20:12:53 +0100 |
---|---|---|
committer | Carlos Sanchez <carlos@apache.org> | 2014-11-21 20:25:26 +0100 |
commit | b1838d2e3ce5cc3ac5406b6432192ce0200306af (patch) | |
tree | 4a6dd189cd90d863843212a8221c4d25af42db5a /archiva-modules/metadata/metadata-model/src | |
parent | 5d29c9ff1d5985db1a8b293ae7a4fb29452041f7 (diff) | |
download | archiva-b1838d2e3ce5cc3ac5406b6432192ce0200306af.tar.gz archiva-b1838d2e3ce5cc3ac5406b6432192ce0200306af.zip |
Add pom properties to ProjectVersionMetadata
Diffstat (limited to 'archiva-modules/metadata/metadata-model/src')
-rw-r--r-- | archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java | 22 |
1 files changed, 22 insertions, 0 deletions
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 1ff3401fe..967eb0d13 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 @@ -20,8 +20,12 @@ package org.apache.archiva.metadata.model; */ import javax.xml.bind.annotation.XmlRootElement; + import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; +import java.util.Properties; @XmlRootElement( name = "projectVersionMetadata" ) public class ProjectVersionMetadata @@ -52,6 +56,8 @@ public class ProjectVersionMetadata private List<Dependency> dependencies = new ArrayList<>(); + private Map<String, String> properties = new HashMap<String, String>(); + private boolean incomplete; public String getId() @@ -184,6 +190,22 @@ public class ProjectVersionMetadata this.dependencies.add( dependency ); } + public Map<String, String> getProperties() + { + return properties; + } + + public void setProperties( Map<String, String> properties ) + { + this.properties = properties; + } + + @SuppressWarnings( { "unchecked", "rawtypes" } ) + public void setProperties( Properties properties ) + { + setProperties( new HashMap<String, String>((Map) properties ) ); + } + public boolean isIncomplete() { return incomplete; |