使用 Maven 和 NetBeans 在 Tomcat 上进行增量热部署 [英] Incremental hot deployment on Tomcat with Maven and NetBeans
本文介绍了使用 Maven 和 NetBeans 在 Tomcat 上进行增量热部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 NetBeans 6.8、Tomcat 6 和 Maven 2.2,并希望立即在浏览器中查看我的代码中的更改(显示 http://localhost:8080) 保存文件后.
I'm using NetBeans 6.8, Tomcat 6, and Maven 2.2 and want to see changes in my code immediately in the browser (showing http://localhost:8080) after saving the file.
tomcat-maven-plugin有如下配置:
The tomcat-maven-plugin has the following configuration:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-beta-1</version>
</plugin>
根据输出,它应该执行就地部署.
Following to the output it should perform in-place deployment.
如何立即在浏览器中查看 Java 代码的更改?
What can I do to see changes in my Java code immediately in the browser?
推荐答案
看看 JRebel.它应该做你想做的.无痛.
Take a look at JRebel. It should do what you want. Painlessly.
这篇关于使用 Maven 和 NetBeans 在 Tomcat 上进行增量热部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文