Lightweight server assemblies may be created that contain only the functional components required by your application(s).
See Constructing a special-purpose server using maven