I'm running a Thorntail 2.2.1.Final microservice with Maven using either of these commands
mvn thorntail:start
mvn thorntail:run
It runs fine, but when I hit Ctrl-C it doesn't exit the application i.e. the console returns, but the app runs in the background. I've tried to stop it
mvn thorntail:stop
But that doesn't work. I have to go and kill the process. I'm using Windows 10.
 
                        
The
thorntail:startandthorntail:stopgoals are meant to be used together as part of a Maven lifecycle, typically for integration testing. That is,thorntail:startintentionally leaves the process running in the background, andthorntail:stopshould stop it.For interactive use,
mvn thorntail:runshould be used. That keeps waiting in the foreground, and Ctrl+C should stop the application behind it.If none of that works, it's a bug. I'd recommend filing a bug in https://issues.jboss.org/browse/THORN and preferrably also include a
jstackoutput for the process.