Tuesday, November 19, 2013

JETTY server


Eclipse run with : Run with maven jetty:run
JRE VM arguments -Djetty.port=9999

POM.xml


<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.1.0.v20100505</version>
<configuration>
<contextPath>mykong</contextPath>
<webAppSourceDirectory>${project.basedir}/src/main/webapp</webAppSourceDirectory>
<webAppConfig>
<contextPath>/mykong</contextPath>
</webAppConfig>

</configuration>
</plugin>