mirror of https://github.com/apache/maven.git
[MNG-5816] Empy maven.config cause Maven to exit with failure
Avoid adding non empty configuration argument that causes exception. Signed-off-by: Karl Heinz Marbaise <khmarbaise@apache.org>
This commit is contained in:
parent
f104ef8850
commit
193778ec0e
|
@ -377,7 +377,10 @@ public class MavenCli
|
|||
{
|
||||
for ( String arg : Files.toString( configFile, Charsets.UTF_8 ).split( "\\s+" ) )
|
||||
{
|
||||
args.add( arg );
|
||||
if ( !arg.isEmpty() )
|
||||
{
|
||||
args.add( arg );
|
||||
}
|
||||
}
|
||||
|
||||
CommandLine config = cliManager.parse( args.toArray( new String[args.size()] ) );
|
||||
|
|
Loading…
Reference in New Issue