Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap

来源:互联网 发布:淘宝代上活动 编辑:程序博客网 时间:2024/05/22 17:11

解决方案:


如果此方法还是创建不了,就可能是你的仓库的问题;

找到你的仓库,cmd命令



down voteaccepted

Remove all your failed downloads:

find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;

For windows:

cd %userprofile%\.m2\repositoryfor /r %i in (*.lastUpdated) do del %i
0 0