You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No timeout for external java process in doGetToolchainModel #170
without arguments blocks forever until the process completes. If the discovered JDK's java binary is:
A script that hangs
A broken/corrupted installation
An interactive shell
Extremely slow (e.g., on a network filesystem)
Maven will hang indefinitely with no way to recover other than killing the process.
Impact
During JDK toolchain discovery, a single problematic JDK installation can cause the entire Maven build to hang permanently. Since discovery scans many directories (including user-controlled paths like , , etc.), a corrupted or slow JDK in any of these locations blocks the build.
Suggested Fix
Use with a reasonable timeout (e.g., 30 seconds), and if the process times out, destroy it and log a warning:
Activity
apacheGH-170: warn when ignoring timed-out JDKs