Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1

目录

【问题描述】maven环境报错

Cannot resolve plugin

org.apache.maven.plugins:maven-compiler-plugin:3.8.1

【解决办法】

  1. 检查maven路径是否一致

  2. 路径一致的话,更改配置文件settings.xml的镜像源。

    添加代码到 <mirrors>

    <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>central</id> <name>Maven Repository Switchboard</name> <url>http://repo1.maven.org/maven2/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror> <mirror> <id>ibiblio</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url> </mirror> <mirror> <id>jboss-public-repository-group</id> <mirrorOf>central</mirrorOf> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> </mirror> <mirror> <id>google-maven-central</id> <name>Google Maven Central</name> <url>https://maven-central.storage.googleapis.com </url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>maven.net.cn</id> <name>oneof the central mirrors in china</name> <url>http://maven.net.cn/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>

刷新idea项目完美解决

相关推荐
王嘉俊9257 分钟前
JVM---Java 类生命周期与类加载机制
java·开发语言·jvm
dokii112 分钟前
二叉树的统一迭代法 标记法
java·开发语言
ChiaWei Lee33 分钟前
【C语言】函数和数组实践与应用:开发简单的扫雷游戏
java·c语言·游戏
wl85111 小时前
Spring @Bean注解使用场景二
java·后端·spring
总是学不会.1 小时前
MyBatis 传递多个参数的方式
java·后端·mybatis·开发
飞奔的马里奥1 小时前
30天学习Java第六天——super关键字
java·开发语言·学习
stevenzqzq2 小时前
java常量池
java·开发语言
失业写写八股文6 小时前
Spring基础:Spring的事物哪些情况下会失效
java·后端·spring
吧啦吧啦吡叭卜9 小时前
【打卡d5】快速排序 归并排序
java·算法·排序算法
大得3699 小时前
宝塔docker切换存储目录
java·docker·eureka