无法销毁 threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=SitemapCheck.SitemapAction,maxpri=10]
2022-09-04 07:20:48
我有java maven项目,它在我的电脑中工作正常,但是当我将此项目上传到ubuntu服务器并尝试使用以下命令在命令行上运行它时,它会给我错误。
命令行代码:
mvn exec:java -Dexec.mainClass=SitemapCheck.SitemapAction
它给我错误像
[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
在互联网上搜索后,我找到了一个解决方案,但不幸的是它不起作用
cleanupDaemonThreads = false
任何人都可以建议我如何修复错误?