使用Maven和NetBeans在Tomcat上进行增量热部署 [英] Incremental hot deployment on Tomcat with Maven and NetBeans

查看:171
本文介绍了使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆