web.xml is missing and <failOnMissingWebXml> is set to true
maven创建项目在pom.xml的war处出现web.xml is missing and <failOnMissingWebXml> is set to true的错误,项目是web项目,打包时打成war包,缺少web.xml文件。
解决方法:
方法一:在 /src/main/webapp/WEB-INF 下有web.xml,但是仍然还是报这个错误,需要两步操作;右击项目,打开Properties对话框,点击Deployment Assembly选项,在右边添加一个文件夹,并且保存设置;在eclispe上方点击Project ->Clean 清理一下这个项目。
方法二:pom.xml配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>

web.xml is missing and failOnMissingWebXml is set to true相关推荐

  1. Eclipse新建Maven项目web.xml is missing and failOnMissingWebXml is set to true错误 pox.xml编译错误

    场景 创建maven项目后 pom.xml出现红色错误: web.xml is missing and <failOnMissingWebXml> is set to true 并且WEB ...

  2. 解决 web.xml is missing and failOnMissingWebXml is set to true 报错

    在学习maven模块化构建项目的时候遇到了如下报错信息: web.xml is missing and <failOnMissingWebXml> is set to true. 这时候需 ...

  3. 创建war类型的maven工程时报web.xml is missing and failOnMissingWebXml is set to true

    2019独角兽企业重金招聘Python工程师标准>>> 1,如图 ①,注意,这是servlet3.0的工程 2,办法 ①,加入如下配置即可 <build><plug ...

  4. servlet-新建maven报错:web.xml is missing and <failOnMissingWebXml> is set to true

    web项目: 新建maven报错:web.xml is missing and is set to true 解决: 勾选项目右键点击-->Java EE Tools-->Generate ...

  5. **Maven web项目报错**-web.xml is missing and <failOnMissingWebXml> is set to true 原因:生成的maven web项目webap

    Maven web项目报错-web.xml is missing and is set to true 原因:生成的maven web项目webapp下缺少web.xml 解决方法:选择项目名-右击, ...

  6. pom.xml中提示web.xml is missing and failonmissingw...

    场景 在新建或者导入Maven项目后,pom.xml提示: web.xml is missing and <failonmissingw>... 解决 在pom.xml中加入: <p ...

  7. Maven项目出现web.xml is missing and 《failOnMissingWebXml》is set to true,已解决

    创建Maven项目出现了这个错误 点击Genarate Deployment Descriptor Stub即可 成功

  8. 公司--查看SQL 用web.xml文件

    <context-param><param-name>showSQL</param-name><param-value>true</param-v ...

  9. eclipse连接mysql提示404_致banq: eclipse数据源连接池提示Missing application web.xml, *错误 ?...

    eclipse mysql tomcat等都安装好了,普通的数据库的连接很正常,但是最近在做数据源连接池是就出现了很多问题.恳请高手指教啊!! 首先,在eclipse中提示错误如下:(是服务器提示)为 ...

最新文章

  1. Tablayout 多个界面使用一个fragment 的实例
  2. 数据类型_插入数据_选取数据_修改数据——删除行
  3. Vant 1.6.11 发布,有赞轻量级移动端 Vue 组件库
  4. 创建springboot多模块项目
  5. EF 执行存储过程方法
  6. N秒钟后自动跳转的html页面,javascript
  7. Rsync:一个很实用的文件同步命令
  8. 跨站点脚本(XSS)和预防
  9. “不管什么关系,只要提借钱,千万别借”你怎么看?
  10. mapinfo在线地图插件_利用开源软件下载地图和影像瓦片数据(修订版)
  11. VS2010下安装Opencv
  12. 量子计算机需要的基础,量子计算入门
  13. How to Root Nexus 5 on Android 4.4.4 KTU84P and Install CWM Recovery
  14. Spring Tool Suite4安装和配置
  15. Neo4j下载与安装
  16. choice数据股票量化接口是什么?
  17. Python的特殊属性和用法
  18. 计算机科学的影响因子,影响因子最高的计算机科学期刊(前50种).doc
  19. buuctf-AWD-测试1
  20. 在 UltraEdit 或 UEStudio 中执行 DOS 或 Windows 命令

热门文章

  1. 极简html4网页布局,36个设计风格不一的极简主义网站布局
  2. 推荐一款炫酷的电路图软件 - Fritzing
  3. 华为鸿蒙980新机,华为鸿蒙OS新机来袭:麒麟980+京东方屏幕+4500mAh 华为诚意之作...
  4. 想着干了 5 年 Android 开发,突然感觉自己啥也不会,内心疑惑:还要继续吗?
  5. 简述cpu的工作原理
  6. 如何在CentOS中屏蔽恶意爆破IP (CentOS8.x)
  7. 在阿里实习后,他的感悟
  8. 【有利可图网】PS教程:设计仿制“这就是街舞”字体效果教程
  9. 使用python爬取最右视频
  10. R语言-光学字符识别分析SVM