1.找到maven的settings.xml文件,通常在maven文件夹的conf中,我的在以下路径:
2.在settings.xml中找到标签,并在其中加入如下代码:
aliyunmaven central aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/
3,最后在idea中配置好maven路径,【File】–>【Settings】–>【 Build, Execution, Deployment】–>【 Build Tools】–>【Maven】



