1.打开idea 打开maven项目报错:Unable to import maven project

 

2.在idea中Help->Show Log in Explorer->idea.log

Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 

3.在windows 的hosts文件输入如下内容:

127.0.0.1 localhost
0.0.0.0 account.jetbrains.com

 

按照如上步骤在idea中Maven Projects上Reimport即可成功。

 

idea新建maven项目之后,运行任何main方法 ,报如下错误:

com.intellij.execution.ExecutionException: Cannot start process, the working directory 'E:\learn-Dubbo\learn-Dubbo' does not exist

找到项目在磁盘上面的位置比如 E:\learn-Dubbo目录,然后删除.idea目录,关闭idea工具,重新打开项目,再运行main方法,可以正常运行。

 

相关文章:

  • 2021-10-24
  • 2021-10-11
  • 2021-09-06
  • 2021-06-13
  • 2021-06-10
  • 2021-09-05
  • 2021-07-26
  • 2021-11-05
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案