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

Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1_第1张图片
【解决办法】

  1. 检查maven路径是否一致Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1_第2张图片

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



    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项目完美解决
Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1_第3张图片

你可能感兴趣的:(解决错误,apache,maven,java)