Incremental build with NetBeans and Maven for jetty hot deployment

Posted by deamon on Stack Overflow See other posts from Stack Overflow or by deamon
Published on 2010-05-06T21:02:28Z Indexed on 2010/05/06 21:08 UTC
Read the original article Hit count: 300

After my unsuccessful attempt to run Tomcat with hot deployment from NetBeans with Maven, I've tried jetty. The jetty-maven-plugin doc gave me an important hint:

The plugin will automatically ensure the classes are rebuilt and up-to-date before deployment. If you change the source of a class and your IDE automatically compiles it in the background, the plug-in will pick up the changed class.

If I look at $myproject/target/classes/... in the projects directory, I can see that NetBeans doesn't compile and refresh the class file on saving. I need to build the project explicitly to update the file and than jetty picks up the change. (The plug-in param "scanIntervalSeconds" is set to 1.)

How can I tell NetBeans to compile on save and update the class file so that jetty can pick up the change?

© Stack Overflow or respective owner

Related posts about jetty

Related posts about maven-jetty-plugin