未验证 提交 71047db3 编写于 作者: L LiuBodong 提交者: GitHub

[FIX][Standalone Server] check if maven settings.xml not exists (#6691)

上级 66fbcae9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册