Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resol

idea导入maven项目,出现以下错误:

[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]

解决方法:

1、修改maven的settting.xml,添加私服镜像
————————————————
版权声明:本文为CSDN博主「金麟十三少」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u012373281/article/details/91384198

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resol_第1张图片

 2、idea配置setting.xml目录

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resol_第2张图片

 

重新操作maven,clean,compile,都可以正常使用了 

你可能感兴趣的:(#,IDEA)