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>
- Springboot package error: failed to execute goal org.apache.maven.plugins:maven-resources-plugin: 3.2.0…
- Prompt unknown error in pom.xml of Maven project
- [Solved] There are test failures. Please refer to D:\Java_study\springboot\springboot-sugon-3\target\surefire-reports for the individual test results.
- [Maven] Pom.xml error: Cannot detect Web Project version.
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- Log4j2 reports ERROR StatusLogger Unrecognized format specifier
- Mavenzai install Error: There are test failures
- [Solved] Maven Error: The packaging for this project did not assign a file to the build artifact
- [Solved] Maven log jar package conflict error: Class path contains multiple SLF4J bindings
- [Solved] Hadoop error java.lang.nosuchmethoderror
- How to Solve Gradle Error: Plugin with id ‘jetty’ not found.
- JSP error: The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- Error creating bean with name ‘redistemplate’ defined in class path resource
- Spring cloud Eureka error creating bean with name
- Springboot Error: There was an unexpected error (type = internal server error, status = 500)
- Webpack Pack and compress ES6 files with errors: ERROR in js/xxxxxx.js from UglifyJs Unexpected token punc ()
- How to Solve Import antd Error: Module build failed
- How to Fix Error when integrating spring cloud openfeign with spring cloud Alibaba
- How to Solve Maven Error: Return code is: 501 , ReasonPhrase:HTTPS Required.
- [Solved] java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession