idea的maven無法添加依賴


報錯信息:

Could not transfer artifact org.mybatis.spring.boot:mybatis-spring-boot-starter:pom:2.1.2 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

解決方式:

點擊File——>Settings——>Build,Execution,Deployment——>Build Tools——>Maven——>Runner

找到VM Options,添加信息:

-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true

 

 

最后,重新compile就行了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM