简体   繁体   中英

Intellije not adding dependencies to class path

For some reason in Intellije Community Edition 14, the maven dependencies are not being found.

找不到依赖项

Maven没有下载文件

I have tried uninstalling and re-installing, I have tried re-importing the maven pom.xml, I have tried deleting all .idea and .iml files, I have tried Re-importing the project through intellije, I have tried deleting the entire project directory and re-downloading from git, and finally I have even tried running the code through maven - nothing is fixing my IDE! Please help!

I actually figured out an even better solution.

My project actually has a fairly complex POM which has parents of other POMs and a complex structure that Intellij didn't like for reasons unknown (Maven compiles worked on command line but Intellij couldn't resolve the POM).

Because of this, no updates would happen, even after updating the workspace.

However, if you simply comment out the lines Intellij doesn't understand, you dependencies will be downloaded correctly. In my case, I just commented out my parent POM and all was well!

You should ultimately try to figure out what is causing said issue, but this will allow you to continue working.

I just created a new workspace so no configs previously messed up were used. Problem solved!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM