Maven新建项目产生Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resource

需要 打开并修改conf/settings.xml,添加如下内容:

        <!-- 设置本地仓库位置-->

        <localRepository>F:\maven\repository</localRepository>

     <!-- 设置远程仓库-->

        <mirror>

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

  注意eclipse 是否应用了配置文件:

 

注:

    1.本地仓库在eclipse中默认是 C:\Users\user\.m2\repository 可自定义,注意配置路径不能出现中文

    2.   mirror表示的是访问镜像。如果本地仓库没有项目所需要的jar包,就会通过这里的mirror配置的url地址进行从远程仓库获取需要的jar,同事将这个jar添加到本地目录中,当再次使用的时候,就会直接从本地仓库中直接获取。我这里选择的是阿里云

好了
---------------------
作者:北冰阳
来源:CSDN
原文:https://blog.csdn.net/weixin_42223248/article/details/80809499
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2018-10-18 09:36  返乡的艺术家  阅读(215)  评论(0编辑  收藏  举报