eclipse新建maven的web项目时,pom.xml的war报错解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34579313/article/details/77743737

具体错误是:web.xml is missing and <failOnMissingWebXml> is set to true

在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


猜你喜欢

转载自blog.csdn.net/qq_34579313/article/details/77743737