Thorntail not exiting gracefully

孤人 提交于 2019-12-11 03:22:23

问题


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 exist 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.


回答1:


The thorntail:start and thorntail:stop goals are meant to be used together as part of a Maven lifecycle, typically for integration testing. That is, thorntail:start intentionally leaves the process running in the background, and thorntail:stop should stop it.

For interactive use, mvn thorntail:run should 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 jstack output for the process.



来源:https://stackoverflow.com/questions/53258699/thorntail-not-exiting-gracefully

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!