如题,在IDEA中使用maven install操作时,报错:
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:3.0.2 from/to Nexus aliyun (http://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 -> [Help 1]
查看错误信息,注意加粗部分,通过网上查看文章得知,maven配置了阿里云的远程仓库,在访问阿里云时需要SSL安全证书,而我应该是缺少了SSL安全证书。
解决方法:
①可尝试参考该文章进行操作:https://www.iteye.com/blog/truth99-2160540
②将setting.xml中远