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 had a similar issue running groovy script with IDEA 12. The problem was the same as @CrazyCoder stated. Solution was based on what @kevinmrohr did just a little easier to find and setup.
To solve the problem I edited idea.exe.vmoptions located in the bin directory (idea64.exe.vmoptions if you are using 64 bit version) and added -Djava.net.preferIPv4Stack=true.
Restarted IDEA and everything was working without any issues.