用myeclipse10建立maven工程时pom.xml报错 求解~~~

流浪的潴 发布于 2013/11/14 21:51
阅读 4K+
收藏 1
用MyEclipse10建立maven web工程的时候,POM.XML总是报错,错误信息如下。还请大神们帮帮忙啊~~ 小弟感激涕零!!
Multiple annotations found at this line:
- No plugin found for prefix 'war' in the current project and in the plugin groups [] available from the 
repositories [local (C:\Users\Guan Yang.m2\repository), central ( http://repo1.maven.org/maven2) ]
- Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from http://
repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update 
interval of central has elapsed or updates are forced. Original error: Could not transfer artifact 
org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central ( http://repo1.maven.org/maven2):  null to 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-
plugin-2.4.3.pom
加载中
0
hantsy
hantsy

在项目目录下运行

mvn clean package -U

0
Peter_ok
Peter_ok

我也遇到了同样的问题,纠结了三天,今天早上把仓库里的东西都删掉了,再进入myeclipse下,选中项目,执行maven4Myeclipse-update.让它重新下载的仓库,就好了。

我认真看了下我的报错的英文,就是仓库里的有这个东西占着,不能执行更新,但又不匹配,就这。

返回顶部
顶部