新建idea项目 maven下载包异常
-
异常
Could not transfer artifact org.codehaus.plexus:plexus-containers:pom:1.0-alpha-30 from/to alimaven (http://maven.aliyun.com/repository/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
-
因为链接是https 证书不信任
-
在idea maven添加参数,忽略证书信任
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true