1:首先maven仓库settings.xml加入阿里云配置
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
2:在加入项目的时候报错maven Could not find artifact org.apache.maven.pluginsmaven-compiler-pluginpom这个问题的时候,一般需要在idea中配置我们的证书
3:打开file - settings - Build,Execution,Deployment - Build Tools - Maven;分别在下面两个里面加入证书:-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
4:最后Apply --> ok 即可