Maven can deploy web applications locally by using plugins.
<properties>
<server.path>/webproject</server.path>
</properties>
<plugin>
<!-- Jetty -->
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${plugin.jetty.version}</version>
<configuration>
<stopKey>STOP</stopKey>
<stopPort>9999</stopPort>
<stopWait>5</stopWait>
<webApp>
<contextPath>${server.path}</contextPath>
</webApp>
</configuration>
</plugin>
<plugin>
<!-- Tomcat 7 -->
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>${plugin.tomcat7.version}</version>
<configuration>
<path>${server.path}</path>
</configuration>
</plugin>