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插件

  • 相关阅读:
    LintCode 82. 落单的数
    LintCode 373. 奇偶分割数组
    LintCode 2. 尾部的零
    LintCode 413. 反转整数
    LintCode 13. Implement strStr()
    串匹配
    【剑指offer】面试题 57. 和为 S 的数字
    二分查找
    整除个数
    使用Eclipse创建Web Services
  • 原文地址:https://www.cnblogs.com/dixinyunpan/p/5857167.html
Copyright © 2011-2022 走看看