I encountered the following error message when learning maven modular construction project:
web.xml is missing and <failOnMissingWebXml> is set to true.
At this time, you need to right-click the project——>Java EE Tools——>Generate Deployment Descriptor Stub. Then the system will create a web.xml file in the src/main/webapp/WEB_INF file. Error resolved!
Of course, this method is a solution for web projects. If your project is not a web project, there is another solution, which is to configure failOnMissingWebXml in the pom file. The specific configuration is as follows:
<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>
Read More:
- Springboot connects to the database error: testWhileIdle is true, validationQuery not set
- [Maven] Pom.xml error: Cannot detect Web Project version.
- Error: env [NODE_ENV] is not set (How to Solve)
- JSP web.xml file header web app error [How to Solve]
- [Solved] Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
- [Solved] Failed assertion: line 3180 pos 12: ‘debugNeedsPaint‘: is not true
- Resolve InsecurePlatformWarning: A true SSLContext object is not available.
- ES Error: Alternatively, set fielddata=true on [How to Solve]
- Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment
- Maven package error: [WARNING] The POM for xxx is missing, no dependency inform
- [Solved] jenkins-deleteDir Error (FilePath is missing)
- An error occurs when trying to pipe a python program to CD- sys.excepthook is missing lost sys.stderr
- How to Solve Maven Error: Return code is: 501 , ReasonPhrase:HTTPS Required.
- Exsi virtual machine is missing vmdk file error [How to Solve]
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- [Solved] Read file XXX /pom.xml Error when Maven is configured in idea
- How to Solve Springmvc Error: org.springframework.web.servlet.DispatcherServlet
- Start error in maven web project java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
- [Solved] Error in inherits(x, “theme”): argument “e2” is missing, with no default
- Prompt unknown error in pom.xml of Maven project