Unable to import maven project in IntelliJ14

Below one worked for me ;

Go to File > Settings > Build,Execution,Deployment> Build Tools > Maven > Importing .

Change VM options for importer to -Didea.maven3.use.compat.resolver


Solved. I had to remove the IntelliJ project folder (.idea) and create a new project from the existing source clicking on the parent pom. Then, everything worked properly.

I guess that some file was corrupted.


In steps. Initially you have something like:

enter image description here

After deleting the .idea folder you will have: enter image description here

So you close the project and start one from existing sources: enter image description here

You select the pom.xml file to create the new project and oveeride the IntelliJ project if one was found. enter image description here

Now you should see exactly the same as in the first picture.