mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-26 15:38:34 +00:00
Make sure the maven.home and maven.conf properties are correctly set when the JVM is started, fixes #553
This commit is contained in:
@@ -372,6 +372,9 @@ public class DaemonConnector {
|
||||
}
|
||||
|
||||
Environment.MVND_HOME.addCommandLineOption(args, mvndHome.toString());
|
||||
args.add("-Dmaven.home=" + mvndHome.resolve("mvn"));
|
||||
args.add("-Dmaven.conf=" + mvndHome.resolve("mvn/conf"));
|
||||
|
||||
Environment.MVND_JAVA_HOME.addCommandLineOption(args, parameters.javaHome().toString());
|
||||
Environment.LOGBACK_CONFIGURATION_FILE
|
||||
.addCommandLineOption(args, parameters.logbackConfigurationPath().toString());
|
||||
|
@@ -112,6 +112,8 @@ public class DefaultClient implements Client {
|
||||
System.setProperty(Environment.MVND_NO_BUFERING.getProperty(), Boolean.toString(true));
|
||||
}
|
||||
|
||||
System.setProperty(Environment.MVND_HOME.getProperty(), parameters.mvndHome().toString());
|
||||
|
||||
int exitCode = 0;
|
||||
boolean noBuffering = batchMode || parameters.noBuffering();
|
||||
try (TerminalOutput output = new TerminalOutput(noBuffering, parameters.rollingWindowSize(), logFile)) {
|
||||
|
Reference in New Issue
Block a user