创建maven项目出现Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved:

  创建maven项目出现Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved:

 

 我这里出现这种错误的原因是在本地仓库没有完全配置好就把Eclipse关闭了,导致仓库加载文件有所缺失,最后出现这个错误。

 

解决方法:找到本地仓库的位置,把仓库内的文件全部删除,然后重新初始化仓库配置,也就是重新建一个maven项目

posted @ 2020-11-04 15:44  焕不涣  阅读(816)  评论(0编辑  收藏  举报