Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)

springBoot项目,报错内容:
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project xxxx: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
方法一 pom文件中添加:
<properties> <failOnMissingWebXml>false</failOnMissingWebXml> </properties>
方法二 pom文件中添加:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> </plugin> </plugins> </build>
方法三:
手动创建 web.xml

posted @   obuok  阅读(201)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-10-08 MacOS Big Sur 打不开Parallels Desktop
点击右上角即可分享
微信分享提示