gpt4 book ai didi

java - 无法使用 Maven 构建项目

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

我有两个 Maven 项目,一个用于 Java 服务,一个用于 Web。首先,我构建了服务项目,并且使用 Maven clean install 构建成功。当我尝试构建 Web 项目时,构建失败。

这是日志

[ERROR] Failed to execute goal on project com.bb.Helloworld-web: Could not resolve
dependencies for project com.bb.Helloworld-web:com.bb.Helloworld-web:jar:1.1.1 BUILD-SNAPSHOT:
Failed to collect dependencies at com.extension.helloworld:com.extension.helloworld:jar:1.1.1.BUILD-SNAPSHOT:
Failed to read artifact descriptor for com.extension.helloworld:com.extension.helloworld:jar:1.1.1.BUILD-SNAPSHOT:
Could not transfer artifact com.extension.helloworld:com.extension.helloworld:pom:1.1.1.BUILD-SNAPSHOT
from/to spring-snapshots (https://repo.spring.io/snapshot): sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target -> [Help 1]

服务项目已成功创建 JAR。

这是web的pom.xml中可用的依赖

<dependency>
<groupId>com.extension.helloworld</groupId>
<artifactId>com.extension.helloworld</artifactId>
<version>1.1.1.BUILD-SNAPSHOT</version></dependency>

如果我遗漏了什么,请告诉我

最佳答案

有一处拼写错误。应该有 com.bb.extension.helloworld 而不是 com.extension.helloworld。感谢您的帮助

关于java - 无法使用 Maven 构建项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55157759/

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