mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-18 07:05:57 +08:00
Cannot re-use daemon with sdkman java 8.0.265.hs-adpt
This commit is contained in:
@@ -100,7 +100,7 @@ public class Server implements AutoCloseable, Runnable {
|
||||
|
||||
List<String> opts = new ArrayList<>();
|
||||
long cur = System.currentTimeMillis();
|
||||
final Path javaHome = Paths.get(System.getProperty("java.home")).toRealPath();
|
||||
final Path javaHome = Paths.get(System.getProperty("mvnd.java.home"));
|
||||
info = new DaemonInfo(uid, javaHome.toString(), layout.mavenHome().toString(),
|
||||
DaemonRegistry.getProcessId(), socket.socket().getLocalPort(),
|
||||
idleTimeout, Locale.getDefault().toLanguageTag(), opts,
|
||||
|
||||
Reference in New Issue
Block a user