Eclipse使用Maven创建Web时错误:Could not resolve archetype

时间:2021-12-01 12:11:18

请检查maven的setting 是否有问题。
window->Perfenence->maven->User Settings里 看 Gloal Setting和User Setting是否一致。

修改成一致后解决。

如果还是有问题 ,可以在maven的安装目录的conf文件夹下 对setting.xml加入阿里的镜像。

这样提高下载速度。

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd"> <!-- 这个是配置阿里Maven镜像 -->
<mirrors>
<mirror>
<id>aliyun</id>
<name>aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors> </settings>