建立maven项目报错

我在本身的电脑上装了一个MyEclipse6.5 和spring tools suit 3.5.1  由于sts自带了maven插件,因此只要在 preference里面配置下maven的本地路径和settings文件的本地路径就能够了,spring

配置完了以后 我在MyEclipse和sts里面都导入了maven项目 均可以运行,我就以为maven配置好了,可是我在sts里面建立maven项目的时候报错 Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 我觉得MyEclipse也这样,可是MyEclipse是建立成功的,而后我安装网上的资料在repository\org\apache\maven\plugins\maven-resources-plugin\目录下添加maven-resources-plugin:jar:2.5  仍是不行,最后我把MyEclipse和sts的maven分开配置,而后就能够了,可是我以为应该能够有更好的办法.目前还不找不到,若是有大牛能解决,但愿留言下apache

相关文章
相关标签/搜索