mirror of https://github.com/apache/maven.git
[MNG-4408] Missing settings.xml is silently ignores
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@830204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
642904917a
commit
21fff93ae9
|
@ -518,6 +518,12 @@ public class MavenCli
|
|||
{
|
||||
userSettingsFile = new File( cliRequest.commandLine.getOptionValue( CLIManager.ALTERNATE_USER_SETTINGS ) );
|
||||
userSettingsFile = resolveFile( userSettingsFile, cliRequest.workingDirectory );
|
||||
|
||||
if ( !userSettingsFile.isFile() )
|
||||
{
|
||||
throw new FileNotFoundException( "The specified user settings file does not exist: "
|
||||
+ userSettingsFile );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -532,6 +538,12 @@ public class MavenCli
|
|||
{
|
||||
globalSettingsFile = new File( cliRequest.commandLine.getOptionValue( CLIManager.ALTERNATE_GLOBAL_SETTINGS ) );
|
||||
globalSettingsFile = resolveFile( globalSettingsFile, cliRequest.workingDirectory );
|
||||
|
||||
if ( !globalSettingsFile.isFile() )
|
||||
{
|
||||
throw new FileNotFoundException( "The specified global settings file does not exist: "
|
||||
+ globalSettingsFile );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue