couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=SitemapCheck.SitemapAction,maxpri=10]

匆匆过客 提交于 2019-12-23 18:54:48

问题


I have java maven project which is working fine in my computer but when i upload this project to the ubuntu server and trying to run it on command line using following command its give me error.

Command line code:

mvn exec:java -Dexec.mainClass=SitemapCheck.SitemapAction

Its give me error Like

[WARNING] NOTE: 2 thread(s) did not finish despite being asked to  via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
[WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=SitemapCheck.SitemapAction,maxpri=10]
java.lang.IllegalThreadStateException
        at java.lang.ThreadGroup.destroy(ThreadGroup.java:778)
        at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:321)
        at

After search on the internet i found one solution but unfortunately its not working

 cleanupDaemonThreads = false

Can anyone please suggest me how can i fixed the error?


回答1:


I was having the same thread warning issue with that org.codehaus.mojo package that also included a java.lang.IllegalThreadStateException and this command worked for me:

mvn compile exec:java -Dexec.cleanupDaemonThreads=false



来源:https://stackoverflow.com/questions/51871635/couldnt-destroy-threadgroup-org-codehaus-mojo-exec-execjavamojoisolatedthreadg

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