Search code examples
javamavenintellij-ideaintellij-14

Why some module can not load maven independencies when open a project use IDEA?


My project has some modules,when I open the project ,some modules can load maven independencies automatically,but some not.I have change the module sdk,java compiler target type code to 1.8,but still can not load the maven project.How to fix it?My os is windows10 and idea is 2020.3.2.I have install openjdk1.8 in my system. The module that can not load maven dependencies

The module that can load maven dependencies

enter image description here

enter image description here


Solution

  • Set JDK for importer to java 8 and after click to Reload All Maven Projects button.

    JDK for Importer enter image description here