Unable to import Maven project into IntelliJ IDEA

前端 未结 12 954
春和景丽
春和景丽 2020-12-01 07:41

I\'m having problems importing any Maven projects into IntelliJ IDEA. I create an empty Maven project like this:

$ mvn archetype:generate -DgroupId=com.mycom         


        
12条回答
  •  猫巷女王i
    2020-12-01 08:17

    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. Also make sure there are no other IP addresses mapped to localhost.

    See my comment in the related YouTrack issue for more details.

提交回复
热议问题