问题
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