mirror of https://github.com/apache/maven.git
don't override existing fields with a null value
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0ee892dfdc
commit
92600f4e55
|
@ -544,6 +544,8 @@ public class DefaultPluginManager
|
|||
String key = (String) i.next();
|
||||
Object value = map.get( key );
|
||||
|
||||
if ( value != null )
|
||||
{
|
||||
Class clazz = plugin.getClass();
|
||||
try
|
||||
{
|
||||
|
@ -571,6 +573,7 @@ public class DefaultPluginManager
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Field findPluginField( Class clazz, String key )
|
||||
throws NoSuchFieldException
|
||||
|
|
Loading…
Reference in New Issue