mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 02:19:14 +00:00
Default value must be manually handled (#953)
Default must be manually handled, i missed this. Fixes #912
This commit is contained in:
@@ -491,16 +491,21 @@ public class DaemonParameters {
|
||||
|
||||
private static List<CoreExtension> filterCoreExtensions(List<CoreExtension> coreExtensions) {
|
||||
Set<String> exclusions = new HashSet<>();
|
||||
String exclusionsString =
|
||||
systemProperty(Environment.MVND_CORE_EXTENSIONS_EXCLUDE).asString();
|
||||
String exclusionsString = systemProperty(Environment.MVND_CORE_EXTENSIONS_EXCLUDE)
|
||||
.orDefault()
|
||||
.asString();
|
||||
if (exclusionsString != null) {
|
||||
exclusions.addAll(Arrays.stream(exclusionsString.split(","))
|
||||
.filter(e -> e != null && !e.trim().isEmpty())
|
||||
.collect(Collectors.toList()));
|
||||
}
|
||||
return coreExtensions.stream()
|
||||
.filter(e -> !exclusions.contains(e.getGroupId() + ":" + e.getArtifactId()))
|
||||
.collect(Collectors.toList());
|
||||
if (!exclusions.isEmpty()) {
|
||||
return coreExtensions.stream()
|
||||
.filter(e -> !exclusions.contains(e.getGroupId() + ":" + e.getArtifactId()))
|
||||
.collect(Collectors.toList());
|
||||
} else {
|
||||
return coreExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
private static Properties loadProperties(Path path) {
|
||||
|
Reference in New Issue
Block a user