If you pack your project using maven war plugin, eg: using command: (
mvn war:war
The default output directory is:
./war
Sometimes we want to change the output directory to:
./src/main/webapp
Following are the pom.xml configuration examples:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<warName>your-war-name</warName>
<outputDirectory>src/main/webapp</outputDirectory>
</configuration>
</plugin>
</plugins>