idea intellij maven project can't make
Do the following steps:
- Find your pom.xml in your files
- Right click on it --> Maven --> Import
- Wait for the project to load :D
- Press ctrl+alt+shift+s (This opens the Projects window.)
- Go to libraries and see if they are empty (they shouldnt)
- If they are post your full pom.xml please so I can see the problem
- If you still have a problem got to File --> Invalidate Caches /Restart
- Go to maven and Reimport All Maven Projects
Option Maven -> Reimport
should force Intellij to reload all dependencies. Alternatively, as mentioned in comments you can click the Reimport All Maven Projects
button in Maven Projects
view.
In my case, I had my own apache-maven-3.5.2 folder and a misconfiguration created my problem. Maybe it's your case too:
In rush, I set the local repository to C:/my/folder/apache-maven-3.5.2/settings.xml, but it must be a folder so Maven didn't allow me to download the dependencies. Then I changed the default (in the picture) and it worked.