mirror of https://github.com/apache/maven.git
handle a missing ~/.m2/settings.xml more gracefully
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@578641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1ba3942757
commit
63c8806450
|
@ -134,7 +134,14 @@ public class DefaultMavenSettingsBuilder
|
|||
{
|
||||
if ( settingsFile == null )
|
||||
{
|
||||
getLogger().debug( "Settings file is null. Returning." );
|
||||
getLogger().debug( "Settings file is null. Returning null." );
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( !settingsFile.exists() )
|
||||
{
|
||||
getLogger().debug( "Settings file doesn't exist. Returning null." );
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue