mirror of https://github.com/apache/maven.git
[MNG-8311] empty but existing <localRepository/> in settings.xml (#1801)
Use default when empty as well --- https://issues.apache.org/jira/browse/MNG-8311
This commit is contained in:
parent
4e5c89c403
commit
9b9f720181
|
@ -621,7 +621,7 @@ public abstract class LookupInvoker<
|
||||||
}
|
}
|
||||||
// settings
|
// settings
|
||||||
userDefinedLocalRepo = context.effectiveSettings.getLocalRepository();
|
userDefinedLocalRepo = context.effectiveSettings.getLocalRepository();
|
||||||
if (userDefinedLocalRepo != null) {
|
if (userDefinedLocalRepo != null && !userDefinedLocalRepo.isEmpty()) {
|
||||||
return context.userResolver.apply(userDefinedLocalRepo);
|
return context.userResolver.apply(userDefinedLocalRepo);
|
||||||
}
|
}
|
||||||
// defaults
|
// defaults
|
||||||
|
|
Loading…
Reference in New Issue