mirror of https://github.com/apache/maven.git
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
This commit is contained in:
parent
a321da38d6
commit
eeb14425c6
|
@ -73,7 +73,7 @@ public class PluginParameterException
|
||||||
param.getName() + ">\n</configuration>" );
|
param.getName() + ">\n</configuration>" );
|
||||||
|
|
||||||
String alias = param.getAlias();
|
String alias = param.getAlias();
|
||||||
if ( StringUtils.isNotEmpty( alias ) )
|
if ( StringUtils.isNotEmpty( alias ) && !alias.equals( param.getName() ) )
|
||||||
{
|
{
|
||||||
messageBuffer.append(
|
messageBuffer.append(
|
||||||
"\n\n-OR-\n\n<configuration>\n ...\n <" + alias + ">VALUE</" + alias + ">\n</configuration>\n" );
|
"\n\n-OR-\n\n<configuration>\n ...\n <" + alias + ">VALUE</" + alias + ">\n</configuration>\n" );
|
||||||
|
|
Loading…
Reference in New Issue