1 web.xml is missing and <failOnMissingWebXml&> is set to true
The reason is that there is a lack of information in the project web.xml , and & lt; failonmissingwebxml &> is set to true
Solution: A. if the project needs web.xml To copy one web.xml Just add it to the project.
You can also use eclipse to generate: there are two ways
1. Right click on the project — &> Java EE tools — &> generate deployment descriptor stub. Then the system will display it in Src/main/webapp/Web_ Add INF file to create web.xml Documents. Error resolution!
2. Right click Project – &> properties – &> project faces to remove the check of dynamic web module, click apply, and then check it again, click the further configuration availber that appears below, and then select the generated directory to generate web.xml
B. if the project does not require web.xml , you need to pom.xml There are two ways to configure & lt; failonmissingwebxml &> to false
1.
<build&>
<plugins&>
<plugin&>
<groupId&>org.apache.maven.plugins</groupId&>
<artifactId&>maven-war-plugin</artifactId&>
<version&>2.6</version&>
<configuration&>
<failOnMissingWebXml&>false</failOnMissingWebXml&>
</configuration&>
</plugin&>
</plugins&>
</build&>
2.
<properties&>
<failOnMissingWebXml&>false</failOnMissingWebXml&>
</properties&>
Similar Posts:
- Maven warnning: ‘build.plugins.plugin.version’ is missing [How to Solve]
- [Solved] Dynamic Web Module 3.0 requires Java 1.6 or newer
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- How does IntelliJ idea use Maven Tomcat plug to run web projects
- Maven no main manifest attribute when generate jar for project
- [Solved] SpringBoot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-res
- [Solved] Spring Start Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project gulimall-coupon: There are test failures. Please refer to D:\m1\0613\mall-coup
- [Solved] Error:java: error: release version 5 not supported & Switch Unrecognized String
- Maven Package Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project Mybatis: There are test failures.
- Springboot always reports an error when importing JSP dependencies