Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5

原创 2016年05月31日 10:28:53

下载maven-resources-plugin-2.5.jar的网址不能访问。

添加镜像,

C:\Program Files\apache-maven-3.3.9\conf\settings.xml,有同学不知道settings.xml的位置,这里列一下。

=======================================settings.xml=================================================

  <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
<mirror>   
        <id>Central</id>   
        <url>http://repo1.maven.org/maven2</url>   
        <mirrorOf>central</mirrorOf>   
    </mirror>  

  </mirrors>

=====================================settings.xml===================================================



----------------------ERROR log-------------------

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project '项目名称'.


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


-----------------------感谢原作者 http://blog.csdn.net/xuefeng0707/article/details/42157311----------------------

Eclipse创建maven项目时报错:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

Eclipse创建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




本人解决方法:

修改settings.xml,添加:

[html] view plain copy
  1. <mirror>   
  2.         <id>Central</id>   
  3.         <url>http://repo1.maven.org/maven2</url>   
  4.         <mirrorOf>central</mirrorOf>   
  5.     </mirror>  

而后删除项目重新创建,或者Force Update


Maven 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3

前些时候我学习Maven,我遇到了以下两个错误(该死的这两个错误,让我浪费了四天时间): 1、Could not resolve archetype org.apache.maven.archety...

Maven之——eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案

在别的机子上创建一个maven工程,复制到本机上导入,出现pom.xml文件错误,提示错误如下 Multiple annotations found at this line: - Execution...

【Maven】用maven后台打包报错Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (def

1.问题: 使用maven后台打包报错,报错结果如下:"C:\Program Files\Java\jdk1.8.0_91\bin\java" -Dmaven.multiModuleProjectD...

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins....

这里先说明下我这次解决的maven不能下载插件的前置条件:自己的网络使用了代理,但maven里面没有配置代理。比如我所在的公司访问外网是要通过公司的代理服务器,但我没有在maven里面配置代理服务器。...

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin

在使用Maven以及Eclipse的Maven插件时,我和同事遇到了一下几个问题,本着知其然知其所以然的学习精神,总结如下: Unrecognised tag 问题 由于我使用本地代理仓库,所以se...

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on p

maven 项目发布到私有库 nexus

"Failure to transfer org.apache.maven.plugins:maven-compiler-plugin"解决方案

关于"Failure to transfer org.apache.maven.plugins:maven-compiler-plugin"解决方案

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

1. 跟着《Maven实战》练习时,编译第一个Maven项目Hello World编译报错了,错误如下: 环境:Intellij IDEA 13.1.4 + Maven 3.2.3Unavaila...

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:

security-sdk-1.0.jar已经存在于D:/secServerSDK-test/src/main/resources/lib下   报错如下: xxxxxx@xxxxxxxx /d/...

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile

1. 好坑呐,一个问题解决了好久才解决。终于可以了不容易啊。 跟着《Maven实战》学习第一个项目就出问题。Compile通过了,可是Test时有问题。网上报这个错的大部分用的都是Eclipse的。...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5
举报原因:
原因补充:

(最多只允许输入30个字)