Saturday, February 11, 2012

maven web app development

I came to point where I needed to build simple java based web application that would have as short as possible deployment time.

OK this is the way I had to follow, hope it can help to make your path simple :)

1. The first decision I made was to go for embedded web server => Jetty can do the job.

2. Maven and jetty are friends => can be run using: jetty:run
config details can be found on:

Where the benefit is that you won't even need to build war (save quite some time during deployment), to have your web app up and running.

3. But I needed to debug when launching from eclipse (using m2e plugin).
Tried a solution with m2e having: MAVEN_OPTS set + remote app debug, as suggested:

this however didn't work for m2e, seems I'm not the only person with this problem, see:

4. So I tried: m2e-webby integration:
and it works great!
It even reads my pom.xml jetty relevant config.

Feel free to spread your experiences in comments section with java web apps development and what is your perfect setup.