exec-maven-plugin
exec-maven-plugin copied to clipboard
Graceful shutdown on JVM termination
When the virtual machine is terminated in response to a user interrupt, such as typing ^C, the parent process should wait until the child process exit for a certain amount of time configurable, and properly flush and close the process steams.
One typical issue with the current absence of graceful shutdown is the child process logs emitted during the child JVM shutdown sequence that are not streamed back to the parent stream handler.
An example to reproduce that issue can be found here: https://github.com/astefanutti/camel-cdi/blob/44cad4f6e8e40cff448608acae70eb08ebe40f1c/quickstarts/pom.xml#L31-L44
We have the same issue. :(