开发者社区 问答 正文

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

用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

展开
收起
爱吃鱼的程序员 2020-06-22 14:27:58 576 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    在项目目录下运行

    mvncleanpackage-U

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

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

    2020-06-22 14:28:17
    赞同 展开评论