Maven pom.xml出现web.xml is missing and is set to true解决方案

最近新建springboot项目,pom.xml报错 web.xml is missing and <failOnMissingWebXml> is set to true

主要项目里没有web.xml,我们只需要配置下

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>
        <failOnMissingWebXml>false</failOnMissingWebXml>
    </configuration>
</plugin>
忽略web.xml即可。

猜你喜欢

转载自blog.csdn.net/qq_35393693/article/details/80149289