新建Maven项目报web.xml is missing and <failOnMissingWebXml> is set to true
来源:互联网 发布:明解c语言第三版pdf 编辑:程序博客网 时间:2024/06/01 09:19
web.xml is missing and <failOnMissingWebXml> is set to true
这是因为你因为你WEB-INF下没有web.xml导致造成的
解决方案:
1.右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创建web.xml文件。错误解决!
2.当然这个方法是针对web项目的解决方案,如果你的工程不是web项目,那么还有另外一种解决方案,就是在pom文件中配置一下failOnMissingWebXml。具体配置如下:
<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>
3.选中项目点击右键 选Maven--->Update Maven 错误消失
阅读全文
0 0
- 新建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
- 新建maven web项目时报错web.xml is missing and <failOnMissingWebXml> is set to true解决方案
- Maven中pom.xml报错:web.xml is missing and <failOnMissingWebXml> is set to true
- mave项目报错: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
- 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
- Android Studio 常用快捷键
- 【脚本语言系列】关于Python基础知识迭代器,你需要知道的事
- (菜鸟成长记录)VB中的ByVal和ByRef的区别
- Linux安装看哪个盘是U盘
- 移动H5前端性能优化指南
- 新建Maven项目报web.xml is missing and <failOnMissingWebXml> is set to true
- java 分布式架构
- UBoot开机图片显示
- 为什么学习Java需要先配置环境变量?
- 文章标题
- SpeechClassifiedData API
- 今天开始学习js了
- 第四章 统计和MATLAB 编程
- Qt for Android调用原生接口打开相机拍照并存储照片