IntelliJ IDEA 2020.2 cannot build my maven projects (Connection refused to host: 127.0.0.1)
Answered
java.lang.RuntimeException: Cannot start maven service
. . . . .
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
. . . . .
Caused by: java.net.ConnectException: Connection refused (Connection refused)
ho can i solve this issue?
Please sign in to leave a comment.
It looks like something is blocking connections to localhost. Please see the manual for possible reasons at https://intellij-support.jetbrains.com/hc/en-us/articles/360014262940-Unable-to-import-Maven-project-import-fails-with-error-Cannot-reconnect .
Mac M1,IntelliJ IDEA 2021.1.2 (Ultimate Edition);
Every time when Mac wakes up from hibernation,and I try to download sources from maven, IntelliJ will throw this exception(`Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1`).
I check my hosts config and find no problem. And if I restart Intellij, problem gets solved.
Hope your answer!!!
Please try the current release: https://www.jetbrains.com/idea/download/index.html.