maven: can't resolve plugin xxxmaven-xxxx-plugin:x.x

主要怨我在idea加载项目下载依赖时把网断开,导致所有依赖对不上,idea报错无法解析。
对于依赖包的报错我用依赖明明存在pom.xml却报Dependency 'groupId:artifactId:version' not found的错中提到的方法解决。
对于插件包的报错我根据Maven :Cannot resolve xxx Plugin方法中提到的方法,到C:Users ellw.m2 epositoryorgapachemavenplugins路径下将刚下载的末尾名为lastupdate的文件所在目录(即maven-plugin版本号目录)删掉,重新在idea导入maven包解决此问题。

原文地址:https://www.cnblogs.com/tellw/p/13932088.html