Intellij - Cannot start maven service - ExecutionException

天大地大妈咪最大 提交于 2019-12-06 00:43:45

I had this problem all of a sudden (after an update + Windows Update). I tried a lot of things, and in the end, set Settings > Build, Execution, Deployment > Build Tools > Maven > Importing > JDK for Importer to Use JAVA_HOME (which I've set up as an env var pointing to a JDK install). That seems to work.

In the Settings > Maven > Importing in box for "VM options for importer:" box I had -Xmx512m -X

for some reason there was a loose -X I removed that and everything is now working fine.

weineel

My hosts file lack of the line:

127.0.0.1   localhost

lead to this problem.

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