目录
【问题描述】maven环境报错
Cannot resolve plugin
org.apache.maven.plugins:maven-compiler-plugin:3.8.1

【解决办法】
-
检查maven路径是否一致

-
路径一致的话,更改配置文件
settings.xml的镜像源。添加代码到
<mirrors>alimaven central aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central central Maven Repository Switchboard http://repo1.maven.org/maven2/ central repo2 central Human Readable Name for this Mirror. http://repo2.maven.org/maven2/ ibiblio central Human Readable Name for this Mirror. http://mirrors.ibiblio.org/pub/mirrors/maven2/ jboss-public-repository-group central JBoss Public Repository Group http://repository.jboss.org/nexus/content/groups/public google-maven-central Google Maven Central https://maven-central.storage.googleapis.com central maven.net.cn oneof the central mirrors in china http://maven.net.cn/content/groups/public/ central
刷新idea项目完美解决
