web.xml is missing and <failOnMissingWebXml> is set to true解决方法
来源:互联网 发布:淘宝网商城炉具大全 编辑:程序博客网 时间:2024/06/05 15:34
在maven模块化构建项目的时候遇到了如下报错信息:
web.xml is missing and is set to true
。这时候需要右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创建web.xml文件。错误解决!
当然这个方法是针对web项目的解决方案,如果你的工程不是web项目,那么还有另外一种解决方案,就是在pom文件中配置一下failOnMissingWebXml。具体配置如下:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> </plugins> </build>
转载自:https://my.oschina.net/799835984/blog/540242
0 0
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- web.xml is missing and <failOnMissingWebXml> is set to true
- java学习笔记4_垃圾回收机制
- 前端面试题第二套
- 欧拉路模板题目(uoj117)
- C#4.0初探:dynamic 关键字
- 欧拉计划003:最大质因数
- web.xml is missing and <failOnMissingWebXml> is set to true解决方法
- keil mdk 编译弹窗错误:browse information of one or more files is not available
- ZCMU—1668
- 二叉树的遍历及应用
- Linux下编写 makefile 详细教程
- QualComm Android boot recovery vertify
- 欢迎使用CSDN-markdown编辑器
- 【Centos7】安装nginx
- mongDB使用小技巧