开发者社区> 问答> 正文

myeclipse建立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-23 01:25:02 470 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    是新安装的maven吧。在命令行中输入mvnhelp:system,等下载完成再刷新看看。http://www.blogjava.net/fancydeepin/archive/2012/07/13/eclipse_maven3_plugin.html

    在pom里添加:

    <dependency><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>2.5</version></dependency>

    重启后就好了

    2020-06-23 01:25:17
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像