Unable to import Maven project into IntelliJ IDEA: looking for available profile

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.

It's a common problem related to networking and address resolution. In some cases localhost may not resolve and it's required to have

127.0.0.1 localhost

in /etc/hosts file.

你可能感兴趣的:(maven,intelliJ idea,import)