Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to import maven project into Intellij Idea :looking for available profile

I have set maven home directory , User setting file and local repo in Idea.

Then I import a maven project ,it starts to scan mavne projects, looking for available profiles. and I can see the Progress bar. but it takes a long time and back to the first step again.

Is my setting wrong ? how to import a maven project into IDEA? thanks a lot !

like image 259
user2172948 Avatar asked Jun 07 '13 09:06

user2172948


People also ask

Why is IntelliJ not importing Maven dependencies?

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 . m2 repository to see if it was downloaded correctly.

How do I import an existing Maven project into IntelliJ?

In the Project tool window, right-click your project and select Add Framework Support. In the dialog that opens, select Maven from the options on the left and click OK. IntelliJ IDEA adds a default POM to the project and generates the standard Maven layout in Project tool window.


1 Answers

I had the same Problem. The solution was to edit the /etc/hosts file and add at the first line:

127.0.0.1 localhost localhost

See also:

Unable to import Maven project into IntelliJ IDEA

like image 179
user1254399 Avatar answered Sep 25 '22 23:09

user1254399