0

I could not import my maven project in IntelliJ. The project has pom.xml file, but the IntelliJ does not load it. Check the log below:

Caused by: java.lang.RuntimeException: Cannot reconnect
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is: 
    java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
    java.net.ConnectException: Operation timed out (Connection timed out)
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
    java.net.ConnectException: Operation timed out (Connection timed out)
Caused by: java.net.ConnectException: Operation timed out (Connection timed out)
avojak
  • 2,342
  • 2
  • 26
  • 32

1 Answers1

1

I kept just the block below in etc/hosts and that works:

127.0.0.1 localhost