其他分享
首页 > 其他分享> > Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (htt

Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (htt

作者:互联网

一.问题

Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

二.解决方案  

     1.更改idea中的证书:

        证书错误,访问https协议的网站,需要ssl认证才行,这里没有证书,我们可以用下面的方式忽略ssl检查导致的问题。
        我们可以到IEDA->setting里,去找 Maven,在importing里加入如下的语句:

         

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

 

标签:maven,ssl,https,apache,org,2.5
来源: https://www.cnblogs.com/dwh-horse/p/16367817.html