문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top