报错
Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.10.1
解决办法
-
在本地idea安装路径下\plugins\maven\lib\maven3\conf中找到setting.xml文件,在文件中添加
<mirror> <id>aliyunmaven</id> <mirrorOf>*</mirrorOf> <name>aliyun maven</name> <url>https://maven.aliyun.com/repository/public</url> </mirror>
-
在项目的pom.xml中添加
<repositories> <repository> <id>aliyunmaven</id> <url>https://maven.aliyun.com/repository/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories>