IDEA maven项目中出现Dependency "XXX" not found 爆红 解决办法

今天在启动一个springboot项目后,右面的maven框一直出现org.springframework.boot:spring-boot-maven-plugin:2.2.1.RELEASE报红,在网上找了很多解决办法都行不通,最后发现这个办法很可行。

虽然是在springboot中出现的错误,但是我觉得不只是springboot中会出现,maven项目中出现这个问题应该都可以试试。

1.点击idea左上角的file,找到Project Structure ,删除Libraries 中的所有jar包
IDEA maven项目中出现Dependency
IDEA maven项目中出现Dependency
2.删除整个target
IDEA maven项目中出现Dependency
3.在左边的maven框中,双击lifecycle中的install
IDEA maven项目中出现Dependency

4.最后重新下载资源,就OK了
IDEA maven项目中出现Dependency

你可能感兴趣的:(Exception,maven,idea,springboot,dependency)