Skip to main content
Jump to: navigation, search

Jetty/Howto/Use Jetty with Maven

< Jetty‎ | Howto
Revision as of 03:36, 27 September 2010 by (Talk | contribs)

Some very simple instructions that will let you execute the SimplestServer example from the Embedding Jetty tutorial.

In your pom enter the following.

   <!-- TODO 1 Pick the version of jetty you want. -->

   <!-- TODO 2 Configure as a repository. -->
   <!-- TODO 3 Set up dependency to get the jetty-server artifact. -->

If you want to run the OneServletContext example you'll also need access to ServletContextHandler and ServletHolder classes together with the HttpServlet and related classes. For this you can replace the dependency on jetty-server with a dependency on the jetty-servlet artifact.


See also the pages on the Jetty Maven Plugin.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.