7

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 !

xuhdev
  • 8,018
  • 2
  • 41
  • 69
user2172948
  • 213
  • 3
  • 7
  • Do you use Maven 3? Does it help if you enable Maven 3 option in Settings | Maven | Import? Any exceptions in [idea.log](http://intellij-support.jetbrains.com/entries/23352446)? Does command line `mvn install` work without problems? – CrazyCoder Jun 07 '13 at 10:02

2 Answers2

12

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

Community
  • 1
  • 1
user1254399
  • 121
  • 1
  • 4
0

For windows(10 and 11)-it's at C:\Windows\System32\drivers\etc\hosts But even after doing that and restarting the system - I am facing the same issue.

I have dual boot linux(Windows 11 and Ubuntu 22.04 LTS). Switched to Linux and without making any changes, everything worked like charm. Same IntelliJ version.

Ashu
  • 614
  • 8
  • 17