From eeb14425c619acd6b9bdb234e6c48ea43d419005 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Tue, 6 Dec 2005 16:34:09 +0000 Subject: [PATCH] PR: MNG-1352 Submitted By: Edwin Punzalan Reviewed By: John Casey Applied this patch, which will ensure that alias != param.getName() before adding a duplicate diagnostic message for configuration. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@354464 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/PluginParameterException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java b/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java index 8e6e5596bb..dafe73b848 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java @@ -73,7 +73,7 @@ public class PluginParameterException param.getName() + ">\n" ); String alias = param.getAlias(); - if ( StringUtils.isNotEmpty( alias ) ) + if ( StringUtils.isNotEmpty( alias ) && !alias.equals( param.getName() ) ) { messageBuffer.append( "\n\n-OR-\n\n\n ...\n <" + alias + ">VALUE\n\n" );