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

2020-03-24  本文已影响0人  多多VS串串

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包,构建镜像环境重新下载

上一篇 下一篇

猜你喜欢

热点阅读