Issue
My IntelliJ today just decided to stop importing my dependencies. Running "mvn clean install" normally downloads all the dependencies, but then they are not imported in "External Libraries" at all. It's been all day and I tried a ton of things found online, but nothing worked.
Things I tried:
- Changing the Maven used and changing from the bundled one to my own
- The buttons Reload Maven Projects and Download Sources do nothing, they start and stop in under a second
- File -> Invalidate Cache/Restart
- Deleting .idea folder
- I have localhost mapped
No, it's not only a visual problem because the libraries result as not resolved.
Thanks in advance!
Solution
Ok I solved it. I had ${version} in the pom because I was using the command "mvn clean install -Dversion=1" to pass that as parameter. Apparently IntelliJ does his checks on the pom before the build even starts, so changing the version directly in the pom did the trick!
Answered By - Umberto