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

xiaoxiao2021-02-28  128

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

转载请注明原文地址: https://www.6miu.com/read-27633.html

最新回复(0)