美文网首页
关于Maven报错:org.apache.maven.plugi

关于Maven报错:org.apache.maven.plugi

作者: 多多VS串串 | 来源:发表于2020-03-24 18:05 被阅读0次

1、现在设置配置镜像配置在maven安装文件中找到/config/setting.xml 在mirror中添加一下内容;
'''

   <!-- 阿里云仓库 -->
    <mirror>
        <id>alimaven</id>
        <mirrorOf>central</mirrorOf>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
    </mirror>
    <!-- 中央仓库1 -->
    <mirror>
        <id>repo1</id>
        <mirrorOf>central</mirrorOf>
        <name>Human Readable Name for this Mirror.</name>
        <url>http://repo1.maven.org/maven2/</url>
    </mirror>

    <!-- 中央仓库2 -->
    <mirror>
        <id>repo2</id>
        <mirrorOf>central</mirrorOf>
        <name>Human Readable Name for this Mirror.</name>
        <url>http://repo2.maven.org/maven2/</url>
    </mirror>

'''
2、删除.m2\repository\org\apache\maven\plugins\maven-compiler-plugin下所有文件,选择Clean项目,再Maven->update project即得到解决。
3、查看eclipse 中maven的配置文件地址是否正确


1585044729(1).png

温馨提示提示:报错原因是因为maven依赖环境出现问题没有下载成功jar包,构建镜像环境重新下载

相关文章

网友评论

      本文标题:关于Maven报错:org.apache.maven.plugi

      本文链接:https://www.haomeiwen.com/subject/dtrayhtx.html