mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-13 07:04:14 +08:00
Fix the JDK_JAVA_OPTIONS
This commit is contained in:
@@ -303,12 +303,6 @@ public class DaemonConnector {
|
||||
}
|
||||
|
||||
private Process startDaemonProcess(String daemonId) {
|
||||
// Those options are needed in order to be able to set the environment correctly
|
||||
DaemonParameters parameters = this.parameters.withJdkJavaOpts(
|
||||
" --add-opens java.base/java.io=ALL-UNNAMED"
|
||||
+ " --add-opens java.base/java.lang=ALL-UNNAMED"
|
||||
+ " --add-opens java.base/java.util=ALL-UNNAMED"
|
||||
+ " --add-opens java.base/sun.nio.fs=ALL-UNNAMED");
|
||||
final Path mvndHome = parameters.mvndHome();
|
||||
final Path workingDir = parameters.userDir();
|
||||
String command = "";
|
||||
|
||||
@@ -145,7 +145,12 @@ public class DefaultClient implements Client {
|
||||
}
|
||||
|
||||
public DefaultClient(DaemonParameters parameters) {
|
||||
this.parameters = parameters;
|
||||
// Those options are needed in order to be able to set the environment correctly
|
||||
this.parameters = parameters.withJdkJavaOpts(
|
||||
" --add-opens java.base/java.io=ALL-UNNAMED"
|
||||
+ " --add-opens java.base/java.lang=ALL-UNNAMED"
|
||||
+ " --add-opens java.base/java.util=ALL-UNNAMED"
|
||||
+ " --add-opens java.base/sun.nio.fs=ALL-UNNAMED");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user