diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java index 56066f7506ae..7057cae818ba 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java @@ -1639,8 +1639,7 @@ void populateProperties( // the SystemPropertyProfileActivator. This won't harm embedding. jvz. // ---------------------------------------------------------------------- Set sys = SystemProperties.getSystemProperties().stringPropertyNames(); - userProperties.stringPropertyNames() - .stream() + userProperties.stringPropertyNames().stream() .filter(k -> !sys.contains(k)) .forEach(k -> System.setProperty(k, userProperties.getProperty(k))); }