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,都可以正常使用了 

相关文章:

  • 2021-04-26
  • 2022-12-23
  • 2021-05-25
  • 2021-05-01
  • 2021-09-14
猜你喜欢
  • 2021-08-28
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-01-19
  • 2021-05-31
相关资源
相似解决方案