[FIX][Standalone Server] check if maven settings.xml not exists (#6691)
This commit is contained in:
parent
66fbcae9dd
commit
71047db39e
|
|
@ -138,12 +138,12 @@ public class DolphinPluginManagerConfig {
|
|||
// get 'settings.xml' from user home
|
||||
Path settingsXmlPath = getMavenSettingsXmlFromUserHome();
|
||||
// if user home does not exist settings.xml, get from '$MAVEN_HOME/conf/settings.xml'
|
||||
if (settingsXmlPath == null) {
|
||||
if (settingsXmlPath == null || !Files.exists(settingsXmlPath)) {
|
||||
logger.info("User home does not exists maven settings.xml");
|
||||
settingsXmlPath = getMavenSettingsXmlFromEvn();
|
||||
}
|
||||
// still not exist, return default repository
|
||||
if (settingsXmlPath == null) {
|
||||
if (settingsXmlPath == null || !Files.exists(settingsXmlPath)) {
|
||||
logger.info("Maven home does not exists maven settings.xml, use default");
|
||||
return defaultRepository;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue