Idea Maven 报错 Cannot reconnect
来源:互联网 发布:淘宝企业店铺委托书 编辑:程序博客网 时间:2024/05/05 08:43
今天新建Maven工程后,依赖无法导入,pom文件报错 Cannot reconnect,没有遇到过这样的问题,然后在网上查找了这个问题相关资料,问题解决了,最重要的是学会了怎样在Idea出现错误时,发现导致错误的具体原因,通过Helper->Show Log in Explorer,查看Idea的日志,就可以发现具体的原因了:
文件idea.log
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
...
...
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused: connect
....
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 28 more
可以发现是Connection refused to host: localhost
这样第一反应就去看hosts文件,想起来前几天因为使用ipv6 dns覆盖了hosts文件,造成了这个问题。
0 0
- Idea Maven 报错 Cannot reconnect
- Idea Maven 报错 Cannot reconnect
- IntelliJ 13,pom报错cannot reconnect
- IntelliJ 13,pom报错cannot reconnect
- maven由IDEA插件转换为自己的jar包配置出现cannot reconnect
- IntelliJ IDEA Maven报错
- IDEA启动报错Cannot load project
- Intellij idea创建maven项目报错
- intellij IDEA使用maven报错
- idea导入maven项目@override 报错
- IDEA maven project Dependencies 报错
- idea 使用maven搭建SpringMVC报错
- idea maven包加载报错
- idea maven-deploy-plugin:2.7 报错
- IDEA中Maven报错NoClassDefFoundError
- maven系列-maven报错Cannot detect Web Project version
- IntelliJ idea报错cannot load module XXX
- idea报错cannot create class 无法创建类
- Linked List Cycle II
- NOIPの模拟_2016_7_19_t2_弄提纲
- Hadoop环境搭建(一)
- web中拖拽函数的封装
- GitHub for windows使用教程(三)
- Idea Maven 报错 Cannot reconnect
- python3的错误和异常操作
- 7/19android培训第九天
- 安全问题
- Java NIO之MappedByteBuffer,高效文件内存映射
- 36.In your production database, data manipulation language (DML) operations are executed on the
- HDOJ 1070 Milk ( 喝牛奶问题 )
- Java-Vector
- java反射调用方法时,Class . can not access a member of class . with modifiers "private" 等异常解决