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:
http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin

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:
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse

this however didn't work for m2e, seems I'm not the only person with this problem, see: http://comments.gmane.org/gmane.comp.ide.eclipse.plugins.m2eclipse.user/7565


4. So I tried: m2e-webby integration:
https://docs.sonatype.org/display/M2ECLIPSE/Integration+with+Maven+WAR+Plugin
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.

Sunday, October 24, 2010

complete removal o linux in windows dual boot env

It's quite strange for me to start my blogging experience with linux removal post, but OK, let's do that.

Situation I've experienced recently was Ubuntu Linux installed on some Windows Vista preloaded notebook. I had dual boot setup there with GRUB as a boot loader and linux and windows living on one PC in parallel. For each I had a separate partition on HDD.

OK now the problem for me was: How to get rid of Ubuntu installation without a need to reinstall windows? My goal was also to reuse disk space in Windows previously occupied by Ubuntu.

So here comes the solution:
1. restore the windows bootloader (get rid of GRUB/LILO)
that can be done using EasyBCD (http://neosmart.net/dl.php?id=1)
steps:
a) download & install
b) make sure boot settings are OK (in "View Settings" section)
c) open "Bootloader setup" and click "Write MBR" button
d) done

2. resize windows partition to reuse linux occupied space
can be done using Easeus Partition Manager (http://www.partition-tool.com/personal.htm), my advantage was that it was a home used notebook only => free edition fit me well
All I had to do, was removal/deletion of linux partition/s and resizing of windows NTFS one

And that's it. For me it fit well.

Feel free to share your ideas in comments section.

pb