Open rovarga opened 4 months ago
I guess DaemonInputStream is waiting for something to come from https://github.com/apache/maven-mvnd/blame/master/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java#L501, which never arrives.
full jstack output: spotbugs_deadlock.txt
A parallel build invoking spotbugs-maven-plugin without forking ends up hanging build sometimes. A thread dump shows two build tasks attempting to lock a monitor:
and
both objects mentioned are held in this context:
This does not happen when SpotBugs is using forked mode, i.e. runs in a different JVM.