web.xml is missing and <failOnMissingWebXml> is set to true
来源:互联网 发布:爱的算法txt 下载 编辑:程序博客网 时间:2024/05/29 12:30
在创建maven模块化构建项目的时候遇到了如下报错信息:
web.xml is missing and <failOnMissingWebXml> 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>
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
- CF650 E
- Linux学习第二单元-控制对文件的访问
- Application对象所存储的 数据如何清空
- Java 8的新特性
- Java中的private、protected、public和default的区别
- web.xml is missing and <failOnMissingWebXml> is set to true
- Android Dialog
- Java NIO
- linq partition by
- listview加背景
- log4j.properties 详解与配置步骤
- (求助)xx has privare access in 怎么解决
- react项目搭建
- java 调用存储过程返回多个结果集