eclipse新建maven的web项目时,pom.xml的war报错解决方法
2017-08-31 11:09
661 查看
具体错误是:web.xml is missing and <failOnMissingWebXml> is set to true
在pom.xml文件中加入
在pom.xml文件中加入
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.3</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin>
然后右键项目名》maven》update project
相关文章推荐
- eclipse新建maven项目:pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true解决方案
- 解决maven重新导入项目时,pom.xml中<packaging>war</packaging>错误的方法
- 解决eclipse新建maven项目时 pom.xml 文件报错问题
- Eclipse下Maven新建Web项目index.jsp报错完美解决(war包)
- 关于Maven创建webapp项目后pom.xml报错的解决方法
- eclipse maven创建一个maven web项目,以及创建过程中的报错解决方法
- Eclipse创建Maven-Web项目及解决 jre版本和web.xml版本问题
- 用eclipse创建maven项目pom.xml报错的解决办法
- maven新建Spring MVC + MyBatis + Oracle的Web项目中pom.xml文件
- eclipse搭建maven项目 pom.xml出现红叉,提示Missing artifact jdk.tools:jdk.tools:jar:1.7,解决办法如下:
- eclipse部署maven web项目到tomcat服务器时,没有将lib、web.xml复制过去的解决办法
- maven2创建web项目,使用eclipse没有run on server的解决方法
- Eclipse中Maven项目pom.xml文件没有错,但一直有红叉的解决办法
- 新建maven项目pom.xml报错解决办法
- eclipse部署maven web项目到tomcat服务器时,没有将lib、web.xml复制过去的解决办法
- 非maven项目转成maven后pom.xml解决方法
- 怎样解决Eclipse中新创建的Maven项目不自动创建web.xml文件
- Eclipse创建Maven-Web项目及解决 jre版本和web.xml版本问题
- Eclipse创建Maven-Web项目及解决 jre版本和web.xml版本问题
- pom.xml项目文件中出现web.xml is missing and <failOnMissingWebXml> is set to true解决方法