Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)

Analysis
Web project missing WEB-INF/ WEB.xml

Updates the version of maven-war-plugin

<plugin>
  <artifactId>maven-war-plugin</artifactId>
  <version>3.0.0</version>
</plugin>

Reference: https://blog.csdn.net/weixin_41699562/article/details/99302298

Read More: