在在maven -> reimport 时出现如下的错误
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.8.RELEASE from/to alimaven (https://maven.aliyun.com/nexus/content/groups/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
出现这个问题需要使用https,并且导出证书
<mirrors>
<mirror>
<id>alimaven</id>
<name>阿里云 maven</name>
<url>https://maven.aliyun.com/repository/central</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
keytool -import -alias cacerts -keystore cacerts -file C:\Users\way\Downloads\ali_maven.cer
- 默认密钥库口令:changeit
- 是否信任此证书?[否]: Y
- 显示证书已添加到密钥库中即表示添加成功
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)