21°

Maven build error:Could not calculate build plan: Plugin...

近期,我在进行maven install时,发生了如下异常:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'myProject'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2
Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2
Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2

解决方案比较简单,需要清空仓库,重新下载。不过重新下载推荐使用阿里云的镜像:将maven源改为国内阿里云镜像

P.S.:这是一个系列性的错误,类似的错误几乎都可以这么处理。

本文由【恒宝乐园】发布于开源中国,原文链接:https://my.oschina.net/hengbao666/blog/3136381

全部评论: 0

    我有话说: