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?

3
3 comments

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!!!

1

Please sign in to leave a comment.