web.xml is missing and <failOnMissingWebXml> is set to true
maven项目中pom.xml文件报错:web.xml is missing and is set to true,原因是项目生成时未生成web.xml文件。解决办法:①点开项目文件夹,点击Deployment Descriptor,选择Generate Deployment Descriptor Stub选项,然后项目会自动在src/main/webapp/WEB_INF文件加下创建web.xml文件。错误解决。②点击项目,右键选择Properties,–>Project