Maven Dependencies not transfered to classpath
Answered
I'm facing a problem wih Maven dependencies in my project.
In the maven projects window the dependencies are shown red underlined...

but in modules within the project stucture there are no files (.iml), also not in the external libraries except for the jdk...

I'm working behind an enterprise firewall and i've set the proxy settings correctly. I have also set the environement variables for JAVA_HOME, MAVEN_HOME and M2_HOME, eventualy also the path variable. But it's still not working...
These are my maven settings...


Does anyone has any ideas how to fix the problem? or has anyone already faced a similar issue?
Thank you for your help.
Please sign in to leave a comment.
Try using bundled Maven and system Oracle JDK version instead of the internal JRE.
Delete .idea directory and reimport the project.
Check idea.log for errors: https://intellij-support.jetbrains.com/hc/articles/207241085.
Thank you for your fast answer.
I tried out the things you mentioned, but sadly without any success.
Please file a bug at https://youtrack.jetbrains.com/issues/IDEA with the logs attached and with a sample project to reproduce.
I solved this by setting the Project Structure > Project Settings > Modules > Dependencies > Module SDK to the correct one. In my case it was not set, but I would assume there could be other times you have multiple Java SDKs and you will need to match the to the one which is being used by the Maven import.
This was causing the classpath errors:
This resolved the classpath errors: