创建Maven web项目时 出现 web.xml is missing and <failOnMissingWebXml> is set to true错误 pox.xml编译错误
来源:互联网 发布:用友软件怎么建账 编辑:程序博客网 时间:2024/06/06 20:17
创建Maven web项目时 出现 web.xml is missing and is set to true错误 pox.xml编译错误链接
今天创建一个maven项目 pom.xml出现如下错误:
web.xml is missing and is set to true
这是因为你因为你WEB-INF下没有web.xml导致造成的
解决方案:
右击项目——>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>
阅读全文
0 0
- 创建Maven web项目时 出现 web.xml is missing and <failOnMissingWebXml> is set to true错误 pox.xml编译错误
- 创建Maven web项目时 出现 web.xml is missing and <failOnMissingWebXml> is set to true错误 pox.xml编译错误
- maven项目出现web.xml is missing and <failOnMissingWebXml> is set to true错误的解决办法
- maven项目出现web.xml is missing and <failOnMissingWebXml> is set to true错误的解决办法
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案
- 创建maven遇到web.xml is missing and <failOnMissingWebXml> is set to true错误
- Maven搭建项目出现web.xml is missing and <failOnMissingWebXml> is set to true
- maven中出现web.xml is missing and <failOnMissingWebXml> is set to true的错误如何解决
- maven 的pom出现web.xml is missing and <failOnMissingWebXml> is set to true
- maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- 新建Maven项目报web.xml is missing and <failOnMissingWebXml> is set to true
- maven项目pom文件报web.xml is missing and <failOnMissingWebXml> is set to true
- eclipse maven项目pom报错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
- 搬瓦工VPS(bandwagonhost):Fremont(费利蒙)机房 VPS 测评
- SSL常见加密算法
- Python 序列化 与 反序列化 JSON 与 pickle 模块
- 臭鱼的产品交互设计分享
- UESTC 数据结构专题训练 A,B,C
- 创建Maven web项目时 出现 web.xml is missing and <failOnMissingWebXml> is set to true错误 pox.xml编译错误
- HDU 3068 Manacher 算法 求最大回文
- Placeholder如何换行
- 玩转Google开源C++单元测试框架Google Test系列(gtest)之六
- 查看和删除进程
- gradle配置签名文件
- bootstrap datepicker 与modal使用 datepicker属性 方法 事件
- 使用java连接MySql,将所有数据转换成Json
- 共享行业的分布式MQTT设计