如何解决maven 2.6资源插件依赖问题? [英] How to solve maven 2.6 resource plugin dependency?

查看:488
本文介绍了如何解决maven 2.6资源插件依赖问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

解决方案尝试:

更新的项目:无法从maven的REPO下载。

Updated project: not able to download from REPO of maven.

尝试在.m2 repo的文件夹中放置perticular jar。

Tried putting perticular jar in that folder of .m2 repo.

如果需要,可以提供引用。

Can provide references if you want.

推荐答案

似乎你的 settings.xml 文件缺少你的.m2(本地maven repo)文件夹。

Seems your settings.xml file is missing your .m2 (local maven repo) folder.

使用eclipse导航到窗口 - >首选项 - > Maven - >用户设置 - >浏览到您的 settings.xml 并点击申请。

When using eclipse navigate to Window -> Preferences -> Maven -> User Settings -> Browse to your settings.xml and click apply.

然后做maven更新项目。

Then do maven Update Project.

这篇关于如何解决maven 2.6资源插件依赖问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆