From 953ac503035743d321bb78452cdbd62c0aab78eb Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Sat, 20 Apr 2024 13:24:54 +0200 Subject: [PATCH] Default must be manually handled, i missed this. Fixes #912 --- .../java/org/mvndaemon/mvnd/client/DaemonParameters.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java b/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java index 1dab82a5c..c942a48d5 100644 --- a/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java +++ b/client/src/main/java/org/mvndaemon/mvnd/client/DaemonParameters.java @@ -491,8 +491,9 @@ private static List readCoreExtensionsDescriptor(Path multiModule private static List filterCoreExtensions(List coreExtensions) { Set exclusions = new HashSet<>(); - String exclusionsString = - systemProperty(Environment.MVND_CORE_EXTENSIONS_EXCLUDE).asString(); + String exclusionsString = systemProperty(Environment.MVND_CORE_EXTENSIONS_EXCLUDE) + .asOptional() + .orElse(Environment.MVND_CORE_EXTENSIONS_EXCLUDE.getDefault()); if (exclusionsString != null) { exclusions.addAll(Arrays.stream(exclusionsString.split(",")) .filter(e -> e != null && !e.trim().isEmpty())