gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 13:40:02 25 4
gpt4 key购买 nike

当我尝试在Eclipse中创建Maven项目时,出现以下错误消息。许多人在settings.xml文件中发布了有关代理的信息,并且还刷新了.m2文件夹,迫使其下载了一个新文件夹。这些都不对我有用。我正在工作,Internet选项中的代理设置处于 Activity 状态。

错误信息:

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>

最佳答案

尝试使用.m2/repository/手动清理本地rm -rf文件夹,然后重新生成项目。在尝试了所有其他可能的选择之后为我工作(重新安装Eclipse,在Eclipse中指向正确的Maven版本,代理设置等)

关于maven - 无法计算构建计划:插件org.apache.maven.plugins:maven-jar-plugin:2.3.2或其依赖项之一无法解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21909466/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com