Plugin org.apache.maven.plugins……

创建maven项目时报错

错误提示:

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

跳转到自己的C:\Users\yqp.m2\repository\org\apache\maven\plugins\maven-war-plugin目录下,删除maven-war-plugin目录下的文件。右键项目名称,构建项目路径,配置构建路径查看是否配置好依赖。如已经配置好,再右键,点击maven,Update一下就可以。

图片.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容