首先
File --> Other Settings --> Settings for New Projects
解决maven下载依赖报错:Cannot resolve plugin org.apache.maven.plugins:maven-surefire-plugin:2.21.0
在本地依赖找到这个依赖maven-surefire-plugin,删掉,然后在idea重新刷新依赖,再次下载就会下载成功。