Search code examples
javaweb-applicationsjettyhotdeploy

Static deployment on Jetty


How can I configure jetty to deploy only one specific web application, and disable hot deployment (disable monitoring webapps directory, disable checking this single application for changes) ?


Solution

  • I would use the context provider only, and just disable the webapp provider. Then you have no scanning of the webapps directory, just a context file that points to your webapp.

    edit the start.ini file and make sure you have the jetty-deploy.xml and jetty-contexts.xml files active, and comment out the jetty-webapps.xml line. Then you just need a file in the contexts directory that points to your webapp.

    more on the context provider here:

    http://wiki.eclipse.org/Jetty/Feature/ContextDeployer