当前位置: 代码迷 >> 综合 >> eclipse新建maven的web项目时,pom.xml的war报错解决方法
  详细解决方案

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

热度:14   发布时间:2023-10-08 22:10:09.0

具体错误是: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


  相关解决方案