已解决:Eclipse创建Maven项目报“Could not resolve archetype org.apache.maven.archetypes:maven-archetype-web”错误

错误提示:

问题分析及解决步骤:

 1、检查eclipse里面配置是否正确;

2、如果以上配置没有问题,那就去找到maven安装路径的D:\apache-maven-3.6.3\conf\settings.xml文件,在xml文件找到“mirrors”节点:

3、在这个节点内,新增配置:

<mirror>
	<id>aliyun</id>
	<name>aliyun</name>
	<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
	<mirrorOf>central</mirrorOf>
</mirror>

如图所示:

4、成功创建maven项目:

发布了71 篇原创文章 · 获赞 181 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/qq_39390545/article/details/104626521