当前位置: 首页 > 知识库问答 >
问题:

无法计算生成计划:Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2或其依赖项之一无法解析

艾晋
2023-03-14

当我试图在Eclipse中创建一个Maven项目时,我得到了以下错误消息。许多人在settings.xml文件中发布了关于代理的信息,并且刷新了.m2文件夹,迫使它下载一个新的代理。这一切对我都没用。我正在工作,代理设置在internet选项中处于活动状态。

错误消息:

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

共有1个答案

郑桐
2023-03-14

尝试使用rm-rf手动清理本地.m2/repository/文件夹,然后重新生成项目。在尝试了所有其他可能的替代方案(重新安装eclipse、指向eclipse中正确的maven版本、代理设置等)之后,我对此起了作用

 类似资料: