A simple solution is to use the jetty-runner. The jetty-runner jar is directly embedded in the jetty distribution (<groupId>org.mortbay.jetty</groupId> <artifactId>jetty</artifactId>
)
and then in your main class you just have to do something like that :
jettyRunner = new JettyRunner("/yourContext", "path/to/your/webApp", port);
jettyRunner.start();