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
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.
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.
In my case it was my firewall. I use bullguard protection btw, which is pretty strict with its firewall.
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
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.
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