title: Cleanest Jetty Configuration for Development?
body: <p><strong>EDIT</strong>: I think I should clarify my intent...</p>
  
  <p>I'm trying to simplify the development iteration cycle of write-code >> build WAR >> deploy >> refresh >> repeat. I'd like to be relatively independent of IDE (i.e., I don't want Eclipse or IntelliJ plug-ins doing the work). I want to be able to edit code/static files and build as needed into my WAR source directory, and just have run/debug setup as a command line call to a centralized Jetty installation.</p>
  
  <p>Later I'd like to be able to perform the actual deployment using generally the same setup but with a packaged up WAR. I don't want to have my app code specific to my IDE or Jetty.</p>
  
  <p>So perhaps a better way to ask this question is <strong>What have you found is the cleanest way to use Jetty as your dev/debug app server?</strong></p>
  
  <hr>
  
  <p>Say I want to have a minimal Jetty 7 installation. I want as minimal of XML configuration as possible, I just need the raw Servlet API, no JSP, no filtering, etc. I just want to be able to have some custom servlets and have static files served up if they exist. This will be the only WAR and it will sit as the root for a given port.</p>
  
  <p>Ideally, for ease of deployment I'd like to have the Jetty directory just be the standard download, and my WAR / XML config be separate from these standard Jetty files. In my invocation of Jetty I'd like to pass in this minimal XML and go.</p>
  
  <p>I'm finding that the documentation is all over the place and much of it is for Jetty 6 or specific to various other packages (Spring, etc.). I figure if I have this minimal configuration down then adding additional abstractions on top will be a lot cleaner. Also it will allow me to more cleanly deal with embedded-Jetty scenarios.</p>
  
  <p>This SO question is an example scenario where this XML would be useful <a href="https://stackoverflow.com/questions/3623412/jetty-run-war-using-only-command-line">Jetty Run War Using only command line</a></p>
  
  <p><strong>What would be the minimal XML needed for specifying this one WAR location and the hosts/port to serve it?</strong></p>
  
  <p>Thanks in advance for any snippets or links.</p>