diff --git a/src/main/java/org/apache/maven/plugins/antrun/AntRunMojo.java b/src/main/java/org/apache/maven/plugins/antrun/AntRunMojo.java index 5ff1844..2f87b3f 100644 --- a/src/main/java/org/apache/maven/plugins/antrun/AntRunMojo.java +++ b/src/main/java/org/apache/maven/plugins/antrun/AntRunMojo.java @@ -461,9 +461,13 @@ public void copyProperties(Project antProject, MavenProject mavenProject) { for (Map.Entry entry : antProps.entrySet()) { String key = entry.getKey(); - if (mavenProperties.getProperty(key) != null) { - getLog().warn("Ant property '" + key + "=" + mavenProperties.getProperty(key) - + "' clashes with an existing Maven property, SKIPPING this Ant property propagation."); + String mavenValue = mavenProperties.getProperty(key); + if (mavenValue != null) { + if (!mavenValue.equals(entry.getValue())) { + getLog().info("Ant property '" + key + "=" + entry.getValue() + + "' clashes with an existing Maven property value '" + mavenValue + + "', SKIPPING this Ant property propagation."); + } continue; } // it is safe to call toString directly since the value cannot be null in Hashtable