I\'m new to Intellij Idea, i just import a project with pom.xml
, but the ide didn\'t resolve anything in maven dependencies.
Anything defined in p
Just encountered the same problem after IntelliJ update. My fix: right click on the project, then maven -> reimport.
In my case,i expanded the maven projects panel on the right side, clicked + and added the project. Then it worked.
Keep in mind that IntelliJ adds your local Maven installation's classes to its own classpath, so keep it up to date.
In my case IntelliJ tried to call method org.eclipse.aether.util.ConfigUtils.getFloat()
. This caused a java.lang.NoSuchMethodError
, because my years old Maven version didn't contain this method yet. Due to the exception IntelliJ stopped resolving dependencies.
After updating Maven, you have to change the "Maven home directory" setting in "Build, Execution, Deployment" -> "Maven". After that you must restart IntelliJ, because the classpath of IntelliJ's JVM won't change while running.
It took me some time to solve this problem, as I didn't expect IntelliJ to use the classes of my local Maven installation. I thought it uses it's own bundled JARs. So hopefully this information is helpful for others.
there's an issue with the bundled Maven version. as someone previously suggested I switched to my own Maven installation and dependencies magically worked (IntelliJ 2018.3)
<option name="workOffline" value="true" />
in workspace.xml
is not your friend. Advise to check this before deleting your .idea
(which has a lot of useful settings you probably don't want to lose)
It's a maven workspace.xml
setting
I tried all of the other suggestions in this thread and nothing worked - however I found this thread from the Jetbrains site and their solution did work for me. I hope it helps some of you as well. Specifically this suggestion worked:
Worked like a charm for me, good luck! :wave:
btw I'm using IntelliJ IDEA Ultimate 2020.2 on a Mac.