SummaryMaven modularity
The following error message was encountered while learning the MAVEN Modular construction project:
Web. XML is missing and <failOnMissingWebXml> are set to True
。 At this point you need to right-click the project-->java EE tools-->generate Deployment descriptor Stub. The Web. xml file is then added to the Src/main/webapp/web_inf file. Error Resolution!
Of course, this approach is for Web project solutions, if your project is not a Web project, then there is another solution, is to configure the Pom file failonmissingwebxml. The specific configuration is as follows:
1<build>2 3<plugins>4 5<plugin>6 7<groupId>org.apache.maven.plugins</groupId>8 9<artifactId>maven-war-plugin</artifactId>Ten One<version>2.6</version> A -<configuration> - the<failOnMissingWebXml>false</failOnMissingWebXml> - -</configuration> - +</plugin> - +</plugins> A at</build>
Web. XML is missing and <failOnMissingWebXml> is SE