Setting up Jetty with IntelliJ IDEA

I wrote this in November of last year, I didn’t have time to share it :(.

  1. Download lastest Jetty stable version here
  2. Uncompress it (tar -zxvf jetty-distribution-9.1.0.v20131115.tar.gz)
  3. cd jetty-distribution-9.1.0.v20131115/
  4. Add the –module=jmx to start.ini archive (echo –module=jmx >> start.ini)
  5. Setup  the Default Jetty Server Local configuration
  6. Click configure and add the path to the folder you just uncompressed

  7. Click Ok and put the following:

    VM Options:

    Jetty Server Settings: select etc/jetty-jmx.xml and etc/jetty.xml

  8. Now just add your new Jetty configuration, for that just click on the plus sign

    and search for Jetty Server Local

  9. Go to deployment tab and add your war(s) file(s)
  10. Add the path you want to use
  11. Add the name you want
  12. Click ok

That’s all, hope this is useful!