pom.xml中的代碼
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.0.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
parent處報錯:
Project build error: Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASE from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASE from/to central (http://repo1.maven.org/maven2): Connect times out and 'parent.relativePath' points at wrong local POM
uj5u.com熱心網友回復:
貌似是找不到maven倉庫你用阿里云的倉庫試試吧http://maven.aliyun.com
另外1.3.0.RELEASE這個版本有點老,用最新的版本吧
uj5u.com熱心網友回復:
spring-boot-starter-parent沒有下載好,進去倉庫刪掉,重新下載。。。uj5u.com熱心網友回復:
大兄弟 你這個問題怎么解決的 我現在遇到了 這個問題 折騰兩天了 都沒有找到解決辦法 如果你解決了 麻煩幫忙解決一下 萬分感謝uj5u.com熱心網友回復:
補一下 這個錯誤資訊 : Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.1.8.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.8.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 targetuj5u.com熱心網友回復:
Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom: in central (https://repo.maven.apache.org/maven2)遇到同樣問題
uj5u.com熱心網友回復:
問題已解決,是證書的問題,uj5u.com熱心網友回復:
這是博客地址http://www.fungnotl.cn/2020/02/24/%E7%9C%9F%E6%AD%A3%E8%A7%A3%E5%86%B3Could%20not%20transfer%20artifact%20org.springframework.boot_spring-boot-starter-parent_pom/
clean之后報sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target這個錯就是證書的問題,兩種解決方法,看博客
uj5u.com熱心網友回復:
你好,請問你現在解決了這個問題了嗎,我部署微服務的使用也是一樣maven專案出了這個問題,本地倉庫一直找不到某一個依賴包
uj5u.com熱心網友回復:
我也是碰到這個問題,之前用的好好的,突然就這樣了,搞了很久也沒搞好
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/69307.html
標籤:Java相關
上一篇:救命啊
