mirror of
https://github.com/apache/maven.git
synced 2025-02-06 18:18:48 +00:00
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 @@ private static void decomposeParameterIntoUserInstructions( MojoDescriptor mojo,
|
||||
param.getName() + ">\n</configuration>" );
|
||||
|
||||
String alias = param.getAlias();
|
||||
if ( StringUtils.isNotEmpty( alias ) )
|
||||
if ( StringUtils.isNotEmpty( alias ) && !alias.equals( param.getName() ) )
|
||||
{
|
||||
messageBuffer.append(
|
||||
"\n\n-OR-\n\n<configuration>\n ...\n <" + alias + ">VALUE</" + alias + ">\n</configuration>\n" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user