我搜索并搜索到没有运气解决此问题。有人能告诉我我能做些什么来解决这个问题吗?Maven构建失败,无法在org.springframework上收集依赖关系:spring-core:jar:4.0.2.RELEASE
在我工作的项目工作区
mvn compile
运行以下命令产生以下错误。
[ERROR] Failed to execute goal on project acme: Could not resolve
dependencies for
project com.acmecorp.acme:acme:war:GUI 5.0: Failed to collect dependencies at
org.springframework:spring-core:jar:4.0.2.RELEASE: Failed to read artifact descriptor
for org.springframework:spring-core:jar:4.0.2.RELEASE: Could not transfer
artifact org.springframework:spring-core:pom:4.0.2.RELEASE from/to central
(https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX
path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target -> [Help 1]
是的,我在.m2文件夹的settings.xml文件中检查了我的代理。这是它的样子。
<proxies>
<proxy>
<active>true</active>
<protocol>https</protocol>
<username>USER</username>
<password>PASS</password>
<host>proxy.host.com</host>
<port>80</port>
</proxy>
<proxy>
<active>true</active>
<protocol>http</protocol>
<username>USER</username>
<password>PASS</password>
<host>proxy.host.com</host>
<port>80</port>
</proxy>
</proxies>
任何建议将不胜感激。
操作系统Windows 7
下载jar由maven更新 – VedX