This article mainly introduces Maven for the first time. Maven automation project is a convenient tool for Java development. For those who are new to Maven, I believe they should also have a question: After creating Maven project, there will be an error, as shown in the figure

Web. XML is missing and <failOnMissingWebXml> is set to true

XML file, so we will create this file. This error is intended to create a similar project to the Web project, because the web project has a web.





Click the hyperlink at the bottom to create a web. XML project under main webApp under SRC. This will create a directory structure similar to the Web project for easy development



After creation, see the following figure:



= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Another way to resolve the error without creating a web. XML file is to switch Eclipse to the Project Explorer:



Right click, and you’re done