Unable to import maven project in IntelliJ14

后端 未结 10 1482
一向
一向 2021-02-01 01:21

I\'m trying to import the Maven projects from IntelliJ button (the one with the arrows in circle), but I get the following message \"Unable to import maven project. See logs for

相关标签:
10条回答
  • 2021-02-01 01:53

    In my case I'd just upgraded my OS (OSX) and doing so deleted my JDK, so Intellij was quietly failing. Following @JeanValjean's advice meant that the project was no longer loadable at all (I couldn't get to JVM preferences). Looking in ~/Library/Logs/IntelliJIdeaXX/idea.log told me the problem and deleting ~/Library/Caches/IntelliJIdeaXX and ~/Library/Preferences/IntelliJIdeaXX/options/jdk.table.xml let me open the project again and fix the path to the JDK.

    0 讨论(0)
  • 2021-02-01 01:53

    For me updating it to intellij 2020 worked from 2017.3.

    I had tried almost all the solutions described here, but updating intellij to 2020 just worked without doing anything.

    0 讨论(0)
  • 2021-02-01 01:59

    In my case it was my firewall. I use bullguard protection btw, which is pretty strict with its firewall.

    0 讨论(0)
  • 2021-02-01 02:00

    Below one worked for me ;

    Go to File > Settings > Build,Execution,Deployment> Build Tools > Maven > Importing .

    Change VM options for importer to -Didea.maven3.use.compat.resolver

    0 讨论(0)
  • 2021-02-01 02:02

    I had IntelliJ IDEA 2018.2 and maven 3.6.3 couldn't work. So I updated IntelliJ IDEA to a version 2019.3 and could use maven 3.6.3.

    0 讨论(0)
  • 2021-02-01 02:03

    Below is the solution that works the best for me:

    Go to File > Settings > Build,Execution,Deployment> Build Tools > Maven > Importing :

    Change VM options for importer to -Xmx4096m

    0 讨论(0)
提交回复
热议问题