maven报错 Could not transfer artifact org.apache.maven.plugins\:maven-clean-plugin\:pom\:2.5 from/to

创建maven工程,发现无法下载任何依赖

排除文件名、maven远程仓库地址的原因后,通过以下方法解决

1. idea 2023.1.1 不兼容maven 3.9.1

重新安装 maven 3.8.8

2.https证书问题

1) 修改idea 设置

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

maven报错 Could not transfer artifact org.apache.maven.plugins\:maven-clean-plugin\:pom\:2.5 from/to_第1张图片

maven报错 Could not transfer artifact org.apache.maven.plugins\:maven-clean-plugin\:pom\:2.5 from/to_第2张图片 

2)IDEA右上角的Maven 工具栏,点击Reload All Maven Projects

maven报错 Could not transfer artifact org.apache.maven.plugins\:maven-clean-plugin\:pom\:2.5 from/to_第3张图片

 

参考 解决Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central_荔子的博客-CSDN博客

你可能感兴趣的:(maven,java)