在搭建项目的时候,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
具体原理还有待研究
参考:https://blog.csdn.net/weixin_42324489/article/details/83477401