web.xml is missing and <failOnMissingWebXml> is set to true
来源:互联网 发布:城市大数据专业委员会 编辑:程序博客网 时间:2024/05/29 02:48
问题:
maven 构建项目的时候报错信息:
web.xml is missing and <failOnMissingWebXml> is set to true
处理方法:
针对 web 项目的解决方案:
右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub. 然后系统会在 src/main/webapp/WEB_INF 文件加下创建 web.xml 文件。
如果你的工程不是 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
- 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实现屏幕找图
- centOS 添加端口过滤
- 【LeetCode】637 Average of Levels in Binary Tree
- 微软转向云端,可能意味着又一轮大裁员
- Nginx学习前置条件准备
- web.xml is missing and <failOnMissingWebXml> is set to true
- 5. PCA方法及其应用
- 简单的web页面性能分析
- POJ 2226 Muddy Fields(二分匹配【最大流】)
- I
- CodeForces 699A
- FFmpeg搭建开发环境
- Google正资助一个由AI机器人编辑的新闻网站
- Docker源码分析(二)之Docker Client