Unable to import Maven project into IntelliJ IDEA

I'm using the community edition 2017.2.1 and I had the same issue, I had to change the JDK version of the maven importer to the correct version(from 1.6 to 1.8) to make it work.

enter image description here


It's a common problem related to networking and address resolution. In some cases localhost may not resolve and it's required to have

127.0.0.1 localhost

in /etc/hosts file. Also make sure there are no other IP addresses mapped to localhost.

See my comment in the related YouTrack issue for more details.