解决 web.xml is missing and <failOnMissingWebXml> is set to true 报错
2017-06-26 10:35
513 查看
在学习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>
相关文章推荐
- web.xml is missing and <failOnMissingWebXml> is set to true解决方法
- maven 遇到failOnMissingWebXml有关问题解决方法:web.xml is missing and <failOnMissingWebXml> is set to true
- pom.xml项目文件中出现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 错误解决办法
- 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
- web.xml is missing and <failOnMissingWebXml> is set to true
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案