添加maven时报错
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'meven-cmd'.
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
正在回答
同学你好,根据报错信息和同学的描述:
应该是插件的jar包没有下载好,建议同学再重新下载一下试试。首先去配置的maven仓库中找到这个对应的文件maven-resources-plugin:2.6,然后删除一下,重新下载试试,比如:
检查是否正常下载,如果没有则删除这个文件夹,重新下载。
如果我的回答解决了你的问题,请采纳,祝学习愉快.
同学你好,同学可以去默认的本地仓库目录下找,在当前系统的用户的目录下,存在.m2文件下的repository中,同学可以先向后学习Maven修改本地仓库小节的内容,找到自己的本地仓库 https://class.imooc.com/lesson/902#mid=22129
然后寻找是否有maven-resources-plugin:2.6的内容
如果我的回答解决了你的疑惑,请采纳!祝学习愉快!
- 参与学习 人
- 提交作业 357 份
- 解答问题 8016 个
本阶段将带你学习MySQL数据库,JDBC接口,MyBatis框架等,带你掌握的数据的存放和管理。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星