[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:
dan1st 2024-10-16 16:20:30 +02:00 committed by GitHub
parent 4e5c89c403
commit 9b9f720181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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