错误描述:
创建maven项目时报错:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.
Could not write artifact lastUpdated status
/home/zheng/.m2/repository/org/apache/maven/archetypes/maven-archetype-webapp/1.0/m2e-lastUpdated.properties (没有那个文件或目录)
原因一:
maven中的maven/conf/setting.xml配置错误
将 <localRepository>/home/zheng/.m2/repository</localRepository>
修改成自己默认地址即可
原因二:
也许是你文件夹名称有问题,最好避免的关键字等名称
原因三:
你的eclipse版本太高或者太低更换一个https://www.eclipse.org/downloads/
原因四:
你的网络是公司网络,在eclipse中需要更换网络代理
window->preferences->general->network coonection
原因五:
你之前下载好的包有问题,到你<localRepository>/home/zheng/.m2/repository</localRepository>里面的地址中全部删除重新创建就可以了