Maven引入时报错(PKIX证书问题):unable to find valid certification path to requested target

学习自:https://blog.csdn.net/xxaann/article/details/104794669

  1. Maven的settins.xml加入阿里云的镜像

 		<mirror>
             <id>nexus-aliyunid>
             <mirrorOf>centralmirrorOf>
            <name>Nexus aliyunname>
           <url>http://maven.aliyun.com/nexus/content/groups/public/url>
        mirror>
  1. setting中设置Maven参数,忽略对SSL证书的认证

即在VM options for importer修改为

-Xmx768m -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=ture

Maven引入时报错(PKIX证书问题):unable to find valid certification path to requested target_第1张图片 VM Options:这是为-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
Maven引入时报错(PKIX证书问题):unable to find valid certification path to requested target_第2张图片

2020版的换位置了
Maven引入时报错(PKIX证书问题):unable to find valid certification path to requested target_第3张图片在这里设置好再新建maven工程即可

你可能感兴趣的:(问题总结,maven,阿里云,ssl,spring,boot)