在搭建项目的时候,maven-install时报错:
Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [Help 1]

解决方法:
在maven的conf文件夹下面的setting.xml文件中加入

Central
http://repo1.maven.org/maven2
central

maven-install时报错
具体原理还有待研究

参考:https://blog.csdn.net/weixin_42324489/article/details/83477401

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-08-15
  • 2021-08-12
  • 2021-08-07
猜你喜欢
  • 2021-05-23
  • 2022-12-23
  • 2021-04-03
  • 2021-09-18
  • 2022-12-23
  • 2021-05-16
  • 2021-06-04
相关资源
相似解决方案