一、打开pom.xml project下在添加
<repositories><repository><id>aliyunmaven</id><name>aliyun</name><url>https://maven.aliyun.com/repository/public</url></repository><repository><id>central2</id><name>central2</name><url>https://repo1.maven.org/maven2/</url></repository></repositories>