Running Jetty from Inside Ant…or Jetty + Ant = Crazy Delicious
Posted by jonchase
Want to speed up your Java web development? Read on…

Jetty is one of the best Java Servlet containers out there. I still don’t use it for production deployment (Tomcat has better monitoring capabilities I think), but it’s all I use for development. I’ve also been using Maven 2 a lot lately (although I’ve come to hate it and can’t wait to migrate back to Ant). One of the reasons I started using Maven was because of the awesome Jetty Maven plug in - by running something like “mvn jetty:run” on the command line, Maven will start a Jetty instance using your project’s POM and your web app will be up and running within seconds. I love it.
However, I hate Maven.
Enter the Jetty Ant plug in. It does the same thing as the Maven plug in above, except it’s easier to use, and it works in Ant.
I’m not going to walk through how to set it up - you can find that out here. This is just a heads up to let you know what you’re missing if you’re not developing with Jetty and Ant.
Leave a Reply