Keren
Keren

Reputation: 539

IntelliJ Stuck "Scanning Maven Projects"

I just freshly installed IntelliJ Community Edition. When I try to import a Maven project, it gets stuck on the step "Scanning Maven Projects" and says its reading ".../pom.xml". It holds here for about 10 minutes, quits out of this window, and then doesn't import the projects at all.

Some other posts have recommended setting up /etc/hosts file, but mine is already set up with 127.0.0.1 localhost. I've set up the proxy information in IntelliJ and in my .m2/settings.xml file as well.

Any suggestions on how I can get IntelliJ just to open up my project?

Best, Keren

Upvotes: 10

Views: 9314

Answers (1)

GiovanyMoreno
GiovanyMoreno

Reputation: 429

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

The solution was to edit the /etc/hosts file and add at the first line:

127.0.0.1 localhost localhost

Also, make sure localhost is mapped only once.

(answered in the comments. I am just leaving this answer for reference as it's one of Google's first results when searching for this problem)

Upvotes: 12

Related Questions