I have a rather large project (with quite a large stack including Spring and Hibernate) that I build through Netbeans using Maven.
Unfortunately, every time I make a cha
Okay, I'm also working on quite similar setup so here are my 2 cents.
First off, get your feet wet with Maven-Jetty Plugin. Make it scan the files for changes so that you don't have to rebuild/deploy the entire project for every changes. Also configure it to store session so that with every (automatic) deploy you don't have to relogin and get to the state you were at before making changes:
org.mortbay.jetty
maven-jetty-plugin
6.1.24
9669
myapp
3
8080
60000
/myapp
${project.build.directory}/sessions
Now, go to project Properties
(by right clicking project)> Build
> Compile
> Compile on save
and select For both application and text execution
.
Also go to Options
> Miscellaneous
> Maven
> and check/select Skip Tests for any build executions not directly related to testing
, so that test are only run when you actually Run 'Test'.
Following these simple steps, I can code and test changes live, quickly and without needing a redeploy. That said, I have faced a few minor issues/annoyances:
You still have to clean-build at times when something does not work (for example, you deleted something and changes do not reflect)
Keeping it running long time can give PermGen exception (Out of space), which is reasonable and you can always increase the memory using jvm opts
you will hate to develop/test projects on containers like jboss/websphere once you get used to this setup