【自己的操作】
(1)windows -> Preferences -> maven 的settings.xml文件中.m2的位置已经失效,更改正确后尝试
(2)pom.xml还有下面错误 把pom.xml中报错的注释后再次尝试启动
Publishing failed with multiple errors Error reading file F:HWORK epositorycomdangaMemCached2.0.1memcached-2.0.1.jar F:HWORK epositorycomdangaMemCached2.0.1memcached-2.0.1.jar (系统找不到指定的文件。) Error reading file F:HWORK epositorymemcached-utilmemcached1.1memcached-1.1.jar F:HWORK epositorymemcached-utilmemcached1.1memcached-1.1.jar (系统找不到指定的文件。) Error reading file F:HWORK epositoryoscacheoscache2.4.1oscache-2.4.1.jar F:HWORK epositoryoscacheoscache2.4.1oscache-2.4.1.jar (系统找不到指定的文件。) Error reading file F:HWORK epositorycomoctocaptchajcaptcha-my1.0jcaptcha-my-1.0.jar F:HWORK epositorycomoctocaptchajcaptcha-my1.0jcaptcha-my-1.0.jar (系统找不到指定的文件。) Error reading file F:HWORK epositorycnitcastpage1.0page-1.0.jar F:HWORK epositorycnitcastpage1.0page-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插件