Question

I have a web project. I build it using maven(complete all stages in every module, then archiving each module to *.jar and then making war-file). If I change one line of code in one class I need to run maven build script and it takes ~5 minutes. How can I see my changes without building the whole application if I changes are within one class and one method?

Was it helpful?

Solution

You should use IntelliJ IDEA for building your project and its Artifacts in the exploded form, so that the classes can be reloaded with hotswap.

With such configuration you can update your application much faster. Also check the tutorials.

For even faster updates consider using JRebel.

OTHER TIPS

You could consider using JRebel. You will need to have a valid license.

You can also can try open source tools just take a look this hotswaping tutorial:

http://www.asjava.com/core-java/how-to-hotswap-java-code-into-jvm-redefinition-example/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top