diff --git a/maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java b/maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java index 147970d564..2106a03467 100644 --- a/maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java +++ b/maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java @@ -153,6 +153,7 @@ public class ApiRunner { super(session, repositorySystem, repositories, resolverRepositories, lookup); systemProperties = System.getenv().entrySet().stream() .collect(Collectors.toMap(e -> "env." + e.getKey(), e -> e.getValue())); + System.getProperties().forEach((k, v) -> systemProperties.put(k.toString(), v.toString())); } @Override