If you encounter a maven error on your pom file saying web.xml is missing
2017-05-27 00:12
477 查看
If you encounter a maven error on your pom file saying web.xml is missing
if you encounter a maven error on your pom file saying web.xml is missingand <failOnMissingWebXml> is set to true, then it means it is expecting a web.xml file in your Maven project
because it is a web application, as we have chosen packaging as war. However, nowadays in web applications
web.xml file is optional. Add the following configuration in your pom.xml within <project> tag to fix the error:
<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>
Packt.Spring.MVC.Beginners.Guide.2nd.Edition.B01I9PAB2O
相关文章推荐
- maven 的pom出现web.xml is missing and <failOnMissingWebXml> is set to true
- 【maven】maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- Maven项目pom.xml文件报错“web.xml is missing and <failOnMissingWebXml> is set to true”
- eclipse新建maven项目:pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true解决方案
- maven 的pom.xml 配置异常web.xml is missing and <failOnMissingWebXml> is set to true
- Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true pom.xml /Ascend line 7 Maven Java EE Configuration Problem
- maven创建web项目-pom文件提示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错误
- pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true
- maven项目出现web.xml is missing and <failOnMissingWebXml> is set to true错误的解决办法
- eclipse从svn导下项目后pom文件提示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错误解决方案
- pom.xml报错:web.xml is missing and <failOnMissingWebXml> is set to true
- eclipse中maven项目web.xml is missing and failonmissingwebxml错误的修复
- pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true解决方案
- 创建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编译错误