gpt4 book ai didi

java - 采集失败、读取 Artifact 失败

转载 作者:行者123 更新时间:2023-12-02 10:02:56 24 4
gpt4 key购买 nike

我正在尝试在我的 Eclipse 中运行一个小型 Maven 项目;我收到这个错误。有人可以帮忙吗?

无法在项目 JSFExamples 上执行目标:无法解析 依赖关系 对于项目 com.ao.courts:JSFExamples:jar:0.0.1-SNAPSHOT: 收集失败 com.sun.faces 处的依赖项:jsf-api:jar:2.1.7:无法读取 Artifact com.sun.faces:jsf-api:jar:2.1.7 的描述符:无法传输 Artifact com.sun.faces:jsf-api:pom:2.1.7 往返中央 (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException:PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException:无法找到 请求目标的有效证书路径 -> [帮助 1]

这是我的 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.ao.courts</groupId>
<artifactId>JSFExamples</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>JSFExamples</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.7</version>
</dependency>
</dependencies>

</project>

最佳答案

您可能位于公司网络内,并且您的代理/防火墙阻止了访问。

关于java - 采集失败、读取 Artifact 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55502125/

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