Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
在IDEA中对SpringBoot项目打包maven打war包项目的时候提示:
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
原因是它会找web.xml文件,而对于SpringBoot项目,它默认删除了此文件。
解决办法是在pom中添加一个插件来打包:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.0</version>
</plugin>
添加后即可打包。
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)的更多相关文章
- 【maven 报错】maven项目执行maven install时报错Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
在使用maven新建的web项目中,执行 执行如上的这两个操作,报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-co ...
- SpringBoot发布WAR启动报错:Error assembling WAR: webxml attribute is required
Spring Boot发布war包流程: 1.修改web model的pom.xml <packaging>war</packaging> SpringBoot默认发布的都是j ...
- 008-SpringBoot发布WAR启动报错:Error assembling WAR: webxml attribute is required
一.Spring Boot发布war包流程: 1.修改web model的pom.xml <packaging>war</packaging> SpringBoot默认发布的都 ...
- Maven打包项目失败;报错:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project Hello: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/we
报错信息: E:\MIKEY\mikey\HTML5\TestMaven_01>mvn package [INFO] Scanning for projects... [INFO] [INFO] ...
- MAVEN项目打包报错:Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on pr ...
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
mvn war:war命令出错: 原因: maven的web项目默认的webroot是在src\main\webapp.如果在此目录下找不到web.xml就抛出以上的异常. 解决方案: 在pom.xm ...
- Failed to execute goal.....webxml attribute is required...
maven在打包项目的时候报错 Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-wa ...
- Maven打包web项目报错:webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update)
问题描述 使用Maven打包项目的时候,出现错误: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing ...
- [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribu ...
- glibc-2.15编译error: linker with -z relro support required
./configure --prefix=/usr/local/glibc-2.15 configure: error: you must configure in a separate build ...
随机推荐
- SciTech-EECS-用MCU的 GPIO 或 OpAmp运放的Output 适配驱动 高电压 的 MOS管/IGBT/可控硅 甚至是 220V及以上的 阻性/感性/容性负载的
TRIAC是"双向可控硅",SCR是"单向可控硅": 有半导体产商为直接驱动TRIAC与SCR而设计的配对光耦, 可以极大简化驱动电路设计.非常方便的用MCU信 ...
- Win11任务栏无法固定软件图标的问题
许多电脑基地的用户在使用win11专业版电脑系统的时候,都会将一些常用的软件固定在任务栏中,但是许多小伙伴却发现自己的win11系统电脑在使用的时候无法加入到任务栏中,这要怎么解决呢?下面技术员小编就 ...
- Win11系统电脑如何取消登录密码的问题
很多电脑基地的用户升级win11系统,但是电脑设置了密码之后,每次开机需要输入密码才能进入桌面.其实,我们设置密码是为了防止陌生人开机就可以进入桌面,但是自己每次进入桌面也要输入密码就很麻烦,下面技术 ...
- OKR 与 KPI:并非对立的管理双剑,而是协同的成长双翼
在现代企业管理的广袤天地中,OKR(目标与关键成果法)和 KPI(关键绩效指标)宛如两颗璀璨的明星,各自散发着独特的光芒,照亮企业前行的道路.然而,在实际的管理实践中,不少管理者常常陷入困惑,将二者视 ...
- WPF 绘制实时曲线图
效果图地址:https://www.bilibili.com/video/BV1PN411W7Ut 通过Writeablebitmapex,gdi+,然后渲染到前台image中实现实时绘制曲线图 部分 ...
- 【转】-Java CAS 原理剖析
Java CAS 原理剖析 本文转载来自卡巴拉的树的Java CAS 原理剖析 在Java并发中,我们最初接触的应该就是synchronized关键字了,但是synchronized属于重量级锁 ...
- CF466C Number of Ways (前缀和)
codeforces原题链接:https://codeforces.com/problemset/problem/466/C CF466C Number of Ways 题目描述 You've got ...
- 探索Windows的脉络 —— 使用ETWInspector深度挖掘系统事件
https://blog.csdn.net/gitblog_00011/article/details/139672057 https://www.softpedia.com/get/Security ...
- 开源文档管理系统_优秀开源wiki系统汇总
官网一般就是演示站,搭建后默认的效果就是和官网一样 MediaWiki官网:https://www.mediawiki.org/wiki/MediaWiki 下载:https://www.mediaw ...
- SM4、AES、DES加解密算法性能比较
SM4.AES.DES加解密算法性能比较测试代码 public void encryDecry() throws Exception{ SM4StringEncryptor sm4 = new SM4 ...