今天使用Eclipse新建Maven项目时报错,错误日志如下:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.
Could not write artifact lastUpdated status
Q:\repository\org\apache\maven\archetypes\maven-archetype-webapp\RELEASE\m2e-lastUpdated.properties (系统找不到指定的路径。)
解决办法:
经检查,发现setting.xml中的本地仓库路径配置出错( 标签),修改路径,指向本地仓库地址即可。
友情链接:http://www.tuicool.com/articles/MbQviqE 该链接错误与本人错误相似,但是本质上不一样,可学习参考
本文解决在使用Eclipse新建Maven项目时遇到的错误问题,通过检查并修正setting.xml文件中的本地仓库路径配置,成功解决了无法解析archetype的问题。提供了一个与个人错误相似但本质不同的解决方案,并分享了相关链接以供参考。
2185

被折叠的 条评论
为什么被折叠?



