解决IDEA中maven-plugins标红的方法

最近在用IDEA搞web项目,使用maven时遇到plugins标红的情况:

自认为公司的网轻松搞定,结果实践中总也不成功

各种File--setting--Maven设置

各种Project--Structure--Library操作

直到想起来,maven中央仓库的镜像可能坑了我

换到阿里的mirror,真顺畅。。。。

记录下吧,不枉费折腾了2小时

D:\apache-maven-3.5.4\conf--setting.xml 添加阿里的中央仓库

    <mirror>
    <id>nexus-aliyun</id>
    <mirrorOf>*</mirrorOf>
    <name>Nexus aliyun</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>

重启IDEA,风轻云淡

posted on 2020-04-26 16:06  testzhangcs  阅读(3106)  评论(0编辑  收藏  举报

导航