IDEA打包maven打war包项目的时候提示:
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
在pom.xml中加入以下依赖,让maven打包项目的时候找idea默认的web目录下web.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>web</directory>
</resource>
</webResources>
</configuration>
</plugin>