zoukankan      html  css  js  c++  java
  • 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)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插件

  • 相关阅读:
    Docker常用命令操作记录
    第一个netty程序--时间服务
    zookeeper+dubbo配置
    通过IRBuilder新建LLVM IR
    TVM结构介绍
    /lib64/libc.so.6 错误导致的系统崩溃
    php 间歇性报 Segmentation fault
    Dell服务器安装OMSA管理工具
    【Selenium学习笔记】网页截图实践
    局域网内网机器上网实操
  • 原文地址:https://www.cnblogs.com/dixinyunpan/p/5857167.html
Copyright © 2011-2022 走看看