ZBLOG

Could not transfer artifact de.codecentric:spring-boot-admin-starter-server:pom:2.1.3 from/to aliyun (http://maven.aliyun.com/nexus/content/groups/public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unab...

The error message suggests that there is an issue with the SSL certificate validation while trying to download the artifact from the Maven repository hosted on Aliyun. This could be due to a missing or invalid SSL certificate.

To resolve this issue, you can try the following steps:

  1. Check if your internet connection is stable and working properly.
  2. Verify if you are able to access the URL http://maven.aliyun.com/nexus/content/groups/public directly from your browser. If not, it may indicate network connectivity issues.
  3. If you have a corporate firewall or proxy in place, ensure that it is properly configured to allow Maven connections.
  4. If possible, try accessing the URL from a different network or machine to see if the issue persists.
  5. Update your Java environment’s truststore with the required SSL certificates. You can do this by importing the necessary certificates into your Java truststore using keytool.

Here is an example command for importing a certificate:

keytool -import -alias mycert -keystore /path/to/truststore.jks -file /path/to/certificate.crt

Replace /path/to/truststore.jks with the path to your Java truststore file, /path/to/certificate.crt with the path to your certificate file, and mycert with an alias for the certificate.

Once you have imported all necessary certificates into your Java truststore, retry downloading the artifact using Maven.

If these steps do not resolve the issue, you may need to reach out to Aliyun support or consult their documentation for further assistance regarding SSL certificate validation errors when accessing their Maven repository.


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://sdn.0voice.com/?id=4013

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?