mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-13 13:44:26 +00:00

Some checks failed
Early Access / Default build (without GraalVM) (push) Has been cancelled
Early Access / Build with GraalVM on macos-13 (push) Has been cancelled
Early Access / Build with GraalVM on macos-latest (push) Has been cancelled
Early Access / Build with GraalVM on ubuntu-latest (push) Has been cancelled
Early Access / Build with GraalVM on windows-latest (push) Has been cancelled
Early Access / Site build (push) Has been cancelled
Stale / stale (push) Has been cancelled
Fixes #1248 When running with mvnd.noDaemon=true, the connectNoDaemon() method was setting up various system properties but missing the crucial MVND_JAVA_HOME property. This caused the Server constructor to fail with 'The system property mvnd.java.home is missing'. The fix adds the missing MVND_JAVA_HOME property in connectNoDaemon() using the same value as JAVA_HOME from parameters.javaHome(). Changes: - Add MVND_JAVA_HOME property setup in DaemonConnector.connectNoDaemon() - Add NoDaemonTest to verify the fix works correctly The solution follows the existing pattern used for other properties in the same method and ensures noDaemon mode works as expected.