Unable to import Maven project into IntelliJ IDEA

前端 未结 12 957
春和景丽
春和景丽 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条回答
  •  感情败类
    2020-12-01 08:36

    I had a similar issue running groovy script with IDEA 12. The problem was the same as @CrazyCoder stated. Solution was based on what @kevinmrohr did just a little easier to find and setup.

    To solve the problem I edited idea.exe.vmoptions located in the bin directory (idea64.exe.vmoptions if you are using 64 bit version) and added -Djava.net.preferIPv4Stack=true.

    Restarted IDEA and everything was working without any issues.

提交回复
热议问题