Eclipse 创建 Maven工程时错误总结
一、Failure to transfer org.apache.maven.plugins:maven-war-plugin:pom:2.2 from https://repo.maven.apache
报错原因:是因为本地没有成功下载该插件,没有成功的原因可能是网络原因或者手贱停掉了
解决方案:按照报错的路径(本地仓库->org/apache/maven/plugins/maven-war-plugin:pom:2.2)找到该目录,删除尾缀为lastUpdated的文件,然后返回eclipse点击该project->Maven->update project。
二、web.xml is missing and <failOnMissingWebXml> is set to true
报错原因:缺失web.xml文件
解决方案:展开该project->Deployment Descriptor->Generate Deployment Descriptor Stub,点击这一项。
更全面的解释:http://blog.csdn.net/sinat_22911279/article/details/77454139