创建Maven项目POM文件报错的解决方法

编程入门 行业动态 更新时间:2024-10-27 06:21:53

创建Maven项目POM文件<a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错的解决方法"/>

创建Maven项目POM文件报错的解决方法

创建一个maven项目,一上来就报错:

Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from  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-compiler-plugin:pom:2.0.2 from/to central (): No response received after 60000 ExampleProject Unknown Maven Problem

解决方法:
1、删除C:\Users\Bruce\.m2\repository\org\apache\maven\surefire\surefire\2.10目录(这是我的目录,大家可以自己搜一下这个surefire目录)下的lastUpdated后缀的文件夹;
2、在eclipse里面右击project,选择Maven–>Update Project。

更多推荐

创建Maven项目POM文件报错的解决方法

本文发布于:2024-03-12 12:37:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1731529.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   解决方法   文件   项目   Maven

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!