idea new spring boot project uses maven dependent on the introduction of failure, pom.xml file in the project label error

    笔者之前准备做一个MongoTemplate的小demo,建完项目后发现pom.xml一直报错,也没有jar包导入。
    网上有病乱投医近一天未果,心态微崩,很急很气(之前没有遇到过)。
    按照网上的帖子什么清楚缓存重启啦、重新导入啊,皆无功而返。
    后来想到可能是网络原因,jar包没下完整。然后找到本地仓库,果然很多.lastupdate文件。
    将其删掉后,reimport依赖,令人抓狂的红线终于消失。
    ps:本地仓库可以通过(File-settings-maven)处local repository查看。
Published an original article · won praise 2 · Views 1708

Guess you like

Origin blog.csdn.net/weixin_43665271/article/details/101274533