Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't import the maven project in IntelliJ Idea 2016.1.1

Tags:

I am trying to import a project in IntelliJ Idea 2016.1.1 using: File->Project from existing sources->choose the required pom.xml

It comes to this dialog box, but nothing happens on clicking next button.

It comes to this dialog box, but nothing happens on clicking next button.

like image 845
Garima Gupta Avatar asked Apr 07 '16 10:04

Garima Gupta


People also ask

Why is IntelliJ not importing Maven dependencies?

Maven dependencies imported incorrectly If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local .

Why Maven is not showing in IntelliJ?

In the file menu select settings -> plugins. search for maven, select maven, select enable. Restart intellij. Once restarted you will now have the option to start new maven project and maven functionality will be accessible in all your previous projects.


2 Answers

I had the same issue, but managed to solve it by updating my /etc/hosts file such that there is was only one entry for localhost

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
# 192.xxx.xxx.xxx localhost <-comment out this
255.255.255.255 broadcasthost
#::1             localhost <- comment out this
like image 162
Ben Flowers Avatar answered Sep 29 '22 06:09

Ben Flowers


In my case, this problem was solved by setting the JDK in IntelliJ IDEA settings. Like this:

Settings

Before selection correct JDK, I had the red text in this field.

like image 31
Dmitry Nichiporenko Avatar answered Sep 29 '22 04:09

Dmitry Nichiporenko