无法计算构建计划:插件org.apache.maven.plugins:maven-jar-plugin:2.3.2或其依赖关系无法解析

当我尝试在eclipse中创建一个Maven项目时,我收到以下错误消息.许多人已经在settings.xml文件中发布了代理,并且还刷新.m2文件夹,迫使它下载一个新文件.这些都不适合我.我在工作,代理设置在互联网选项中有效.

错误信息:

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

pom.xml中:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.blahhhhhhhhhhhhhhhhh</groupId>
  <artifactId>HelloRESTEasy</artifactId>
  <version>0.0.1-SNAPSHOT</version>
</project>

settings.xml中:

  <proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxyserver.company.com</host>
      <port>8080</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
  </proxies>
最佳答案
尝试使用rm -rf手动清理本地的.m2 / repository /文件夹,然后重建该项目.在尝试每一种可能的其他替代方法(重新安装eclipse,指向eclipse中的正确的maven版本,代理设置等)后为我工作

转载注明原文:无法计算构建计划:插件org.apache.maven.plugins:maven-jar-plugin:2.3.2或其依赖关系无法解析 - 代码日志