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

时间:2024-03-14 08:38:31

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,添加私服镜像

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

2、idea配置setting.xml目录

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

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