Eclipse-Mars Release (4.5.0)创建Maven项目报错

时间:2015-09-27 22:59:22   收藏:0   阅读:931

1、Eclipseb版本为Mars Release (4.5.0)

技术分享

2、报错内容

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved:....................................

3、解决方法

    找到本地仓库位置,将仓库中的/org/apache/maven/plugins目录下的文件夹全部删除

    然后选择maven项目,右键->maven->update,重新下载依赖包即可

    或者在settings.xml中设置镜像仓库地址:

<mirror> 
        <id>Central</id> 
        <url>http://repo1.maven.org/maven2</url> 
        <mirrorOf>central</mirrorOf> 
</mirror>

4、分析问题原因

    依赖包版本对应错误

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!