Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 fromto nexus-aliyun

Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 fromto nexus-aliyun,第1张

Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to nexus-aliyun Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to nexus-aliyun

问题描述,Idea创建project后maven不自动化下载依赖,查看后发现maven的pluging也在报错,检查配置发现无误

然后各种查找资料是mavenSSL证书校验导致的,最后用以下办法解决:
第一步,删除maven本地仓库中的.pom.lastupdated文件(或者直接全部干掉)
第二步,如果本地项目中已有maven依赖,请先删除,如果没有,跳过
第三步,删除pom.xml中的依赖信息(或者注释也行)

第四步,在File → setting下的 Maven → importing ,如下图,加一句话(该配置用于忽略ssl证书的验证)

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

第五步,在pom中恢复依赖,刷新maven,即可正常下载

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5703644.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存