From fd9b6f89c84a4d4c59df06f7fc34d580d70c6848 Mon Sep 17 00:00:00 2001 From: AdamGrzybkowski Date: Mon, 14 Nov 2016 09:11:05 +0100 Subject: [PATCH] SDK-175 bug fix --- .../org/openmrs/maven/plugins/model/BaseSdkProperties.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/maven-plugin/src/main/java/org/openmrs/maven/plugins/model/BaseSdkProperties.java b/maven-plugin/src/main/java/org/openmrs/maven/plugins/model/BaseSdkProperties.java index 76b8de87..f4f5dd98 100644 --- a/maven-plugin/src/main/java/org/openmrs/maven/plugins/model/BaseSdkProperties.java +++ b/maven-plugin/src/main/java/org/openmrs/maven/plugins/model/BaseSdkProperties.java @@ -177,7 +177,11 @@ public void removeModuleProperties(Artifact artifact) { newProperties.putAll(properties); for(Object keyObject: properties.keySet()){ String key = keyObject.toString(); - if(key.startsWith(TYPE_OMOD+"."+artifact.getArtifactId())){ + if(key.equals(TYPE_OMOD+"."+artifact.getArtifactId())){ + newProperties.remove(key); + } else if(key.equals(TYPE_OMOD+"."+artifact.getArtifactId()+"."+TYPE)){ + newProperties.remove(key); + } else if(key.equals(TYPE_OMOD+"."+artifact.getArtifactId()+"."+GROUP_ID)){ newProperties.remove(key); } }