遇到删除hosts的localhost的坑(Unable to import maven project: See logs for details)
来源:互联网 发布:吉他制谱软件 编辑:程序博客网 时间:2024/05/29 09:32
缘起
不知什么时候把hosts中localhost映射到127.0.0.1给删除了,结果在idea中刷maven的时候一直提示:Unable to import maven project: See logs for details
解决过程
- 根据提示,去查log,在idea的help菜单下点击
show log in finder
,打开日志一看,看到java.net.ConnectException: Connection refused
那就是连不上网呀,查看了网络,都是ok的,没毛病; - 再往下看日志,
java.rmi.RemoteException: Cannot start maven service; nested exception is:
,发现maven去请求localhost了,而且连接不上,那就直接
java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refusedping localhost
,竟然ping不同 - 立马查下hosts文件,发现
localhost
对应到127.0.0.1
不在hosts里 - 加上localhost的映射,再试一把,worked
总结
一些系统默认的配置修改和删除要小心谨慎,不然哪天出现问题都不知道怎么回事
阅读全文
1 0
- 遇到删除hosts的localhost的坑(Unable to import maven project: See logs for details)
- idea导入项目出现Unable to import maven project: See logs for details提示
- idea unable to import maven see logs for details
- 安装Eclipse插件,遇到当安装在它成功,按它的要求重启后出现一个错误(Unable to open the workbench,see the error logs)
- AndroidStudio中出现Some file crunching failed, see logs for details的解决办法
- IDEA Unable to import maven project 解决方法
- Some file crunching failed, see logs for details解决.9patch点9图片的报错问题
- Unable to import Maven project into IntelliJ IDEA2017
- Error:java.lang.RuntimeException: Some file crunching failed, see logs for details(9patch)
- Some file crunching failed, see logs for details
- ProjectName:mergeDebugResources'. > Some file crunching failed,see logs for details
- Some file crunching failed, see logs for details解决办法
- Some file crunching failed, see logs for details
- Some file crunching failed, see logs for details
- Android :Some file crunching failed, see logs for details解决办法
- Some file crunching failed, see logs for details解决办法
- Android message Some file crunching failed, see logs for details
- Error:Some file crunching failed, see logs for details
- ffmpeg入门基础知识
- C++第5次作业
- 如何在无图形界面的操作系统上使用图形界面软件如sublime text,以及显示图形?
- c头文件
- [提高]ES2015中最惊艳特性之生成器函数初步
- 遇到删除hosts的localhost的坑(Unable to import maven project: See logs for details)
- 图解HTTPS
- curl 在HEAD请求中加入Authenticaion
- (转)Android ImageView加载圆形图片且同时绘制圆形图片的外部边缘边线及边框
- apktool--signapk.jar
- pci设备的枚举(转)
- kotlin
- MySQL 学习<五> MySQL函数简介(条件判断函数、系统信息函数、其他常见函数函数)
- ambari架构