9

idea新建spring boot项目使用maven引入依赖失败,pom.xml文件中project标签报错

 3 years ago
source link: https://blog.csdn.net/weixin_43665271/article/details/101274533
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

idea新建spring boot项目使用maven引入依赖失败,pom.xml文件中project标签报错

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK