手记

使用maven遇到过的坑(1)

  1. 异常 Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true

解决方式:
pom.xml 中加入
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>

</pluginManagement>

</build>

0人推荐
随时随地看视频
慕课网APP