James Jefferies and ShedCode Ltd

The world of James and ShedCode

Embedded Tomcat and Jetty

With maven, running web apps with embedded tomcat & jetty is brill… as long as you have a straightforward configuration, not requiring lots of extra dependencies. The maven jetty plugin is super configurable though and can be tweaked as required.

To get the jetty plugin working though, you need to add the following to your settings.xml


Once you’ve done that, it should pick up fine with mvn jetty:run for jetty or mvn tomcat:run for tomcat