maven报错【Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of】

 2023-02-25    406  

【自己的操作】

(1)windows -> Preferences -> maven 的settings.xml文件中.m2的位置已经失效,更改正确后尝试

maven报错【Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of】

(2)pom.xml还有下面错误  把pom.xml中报错的注释后再次尝试启动

Publishing failed with multiple errors
Error reading file F:\HWORK\repository\com\danga\MemCached\2.0.1\memcached-2.0.1.jar
F:\HWORK\repository\com\danga\MemCached\2.0.1\memcached-2.0.1.jar (系统找不到指定的文件。)
Error reading file F:\HWORK\repository\memcached-util\memcached\1.1\memcached-1.1.jar
F:\HWORK\repository\memcached-util\memcached\1.1\memcached-1.1.jar (系统找不到指定的文件。)
Error reading file F:\HWORK\repository\oscache\oscache\2.4.1\oscache-2.4.1.jar
F:\HWORK\repository\oscache\oscache\2.4.1\oscache-2.4.1.jar (系统找不到指定的文件。)
Error reading file F:\HWORK\repository\com\octo\captcha\jcaptcha-my\1.0\jcaptcha-my-1.0.jar
F:\HWORK\repository\com\octo\captcha\jcaptcha-my\1.0\jcaptcha-my-1.0.jar (系统找不到指定的文件。)
Error reading file F:\HWORK\repository\cn\itcast\page\1.0\page-1.0.jar
F:\HWORK\repository\cn\itcast\page\1.0\page-1.0.jar (系统找不到指定的文件。)

(3)缺少jar包 无法启动

 

 

 

 

 

 

【参考】

在用Eclipse IDE for Java EE Developers进行maven项目的开发时,报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of;解决方法:

1、查看windows -> Preferences -> maven 的settings.xml文件中.m2的位置

2、然后将.m2/repository/org/apache/maven/plugins目录下的文件夹全部删除

3、选中maven项目,右键–》maven–》update让maven重新下载依赖包

问题解决

【注】此IDE自带maven插件,不需要再自己下载安装maven插件

以上所述是小编给大家介绍的maven报错【Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of】,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对77isp云服务器技术网的支持!

原文链接:https://77isp.com/post/34482.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。