I can't work with Maven's dependency in IntelliJ IDEA

时光怂恿深爱的人放手 提交于 2019-12-12 02:25:37

问题


Hi, all! My problem is that I cant't work with Maven's dependency in IntelliJ IDEA (see the picture). What's wrong? This error does not depend on Link library. I tried t odo reimport. It was useless.


回答1:


Make sure that Firewall/Any other software is not preventing IntelliJ Idea from connecting to internet.

The Dependency is not yet downloaded and installed to the local .m2 repository, so intelliJ needs internet connectivity so that it can download the dependency for the first time!

Once downloaded to local repository, you can work offline!

then try mvn clean install.




回答2:


Try pressing 'Reimport All Maven Projects' button. It's the first button at Maven Projects tab (blue circle). Looks like this dependency wasn't downloaded from Internet yet.



来源:https://stackoverflow.com/questions/39890619/i-cant-work-with-mavens-dependency-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!