Consider:
When I create a simple Maven project in Eclipse I am getting this error:
web.xml is missing and
Right click on the project, go to Maven -> Update Project... , then check the Force Update of Snapshots/Releases , then click Ok. It's done!
If you use Spring Tool Suite, option for Generate Deployment Descriptor Stub is moved under Java EE Tools, so you:
This will create web.xml file inside src/main/webapp/WEB-INF/ folder, and of course remove error from Maven's pom.xml file.
Do this:
Go and right click on Deployment Descriptor and click Generate Deployment Descriptor Stub.
Create WEB-INF folder in src/webapp, and include web.xml page inside the WEB-INF folder then
Remove files from -web/.setting&-admin/.setting
My project had nothing to do with war, but the same error. I had to remove project from eclipse, delete all eclipse files from the project folder and reimport maven project.