Unable to import Maven project into IntelliJ IDEA

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.


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


To correct this issue for me in 14.1.3 Ultimate, I had to add

-Didea.maven3.use.compat.resolver

to VM options for importer under Preferences > Build, Execution, Deployment > Build Tools > Importing

per the bug at https://youtrack.jetbrains.com/issue/IDEA-140208.