起因:
maven项目中放置web.xml文件的资源文件夹写成了webapps
分析:
maven的web项目默认是在src\main\webapp。
如果在此目录下找不到web.xml就抛出该异常。
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project health_backend: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
解决:
目录名改回webapp