在用IDEA新建springboot專案時maven請求遠程倉庫下載依賴包時報錯:
Non-resolvable parent POM for team.legend:jobhunter:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.9.RELEASE from/to alimaven (http://maven.a
liyun.com/nexus/content/repositories/central/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certificati
on path to requested target and 'parent.relativePath' points at no local POM @ line 5, column 13 -> [Help 2]
個人預測原因是SSL證書驗證失敗,但是在進入目標網址下載證書,用keytool手動匯入后依然無法解決該錯誤,希望有大神能幫忙提供一點解決的思路
網上還提供了一個原因可能是jdk版本的問題,但是我的jdk版本是1.8u_201,應該沒有問題。。。
下面貼上全部報錯日志,感謝各位大神們了!!!
```
E:\JetBrains\IDEA_prj\jobhunter>mvn install
[INFO] Scanning for projects...
Downloading from alimaven: http://maven.aliyun.com/nexus/content/repositories/central/org/springframework/boot/spring-boot-starter-parent/2.1.9.RELEASE/spring-boot-starter-parent-2.1.9.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for team.legend:jobhunter:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.9.RELEASE from/to alimaven (http://maven.aliyu
n.com/nexus/content/repositories/central/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification p
ath to requested target and 'parent.relativePath' points at no local POM @ line 5, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project team.legend:jobhunter:0.0.1-SNAPSHOT (E:\JetBrains\IDEA_prj\jobhunter\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for team.legend:jobhunter:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.9.RELEASE from/to alimaven (http://maven.a
liyun.com/nexus/content/repositories/central/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certificati
on path to requested target and 'parent.relativePath' points at no local POM @ line 5, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
uj5u.com熱心網友回復:
我也是這個錯誤,請問有人知道怎么解決嗎?
uj5u.com熱心網友回復:
我也遇到了,無解uj5u.com熱心網友回復:
你好,你怎么匯入證書呢? 阿里的maven庫證書?可不可以提供一下教程,我也試試,目前面臨同樣的問題,很難受uj5u.com熱心網友回復:
pkix問題直接重裝系統會不會解決這個問題?求解轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/15977.html
標籤:Web 開發
下一篇:引數型別不匹配
