I\'m having problems importing any Maven projects into IntelliJ IDEA. I create an empty Maven project like this:
$ mvn archetype:generate -DgroupId=com.mycom
I faced the same problem. Sorry, none of the above suggestions worked for me. In fact when I launch the gradle project from IntelliJ, I got error as "Connection refused: connect" in the event log. I tried various options like setting -Djava.net.preferIPv4Addresses=true, windows hot fix, installing ISA Client, Restarting machine, switched java lang level, disabled firewall. Nothing helped.
Finally giving the proxy information in the IntelliJ Idea does the trick for me.

Give the same proxy information as in your internet properties for IntelliJ proxy settings.
