JRebel 可以重新部署 Maven 依赖项中的更改吗?
所以我有一个多模块 Maven Web 应用程序在 eclipse 和 tomcat 中使用 wtp 运行。
然而,应用程序的部署需要一些时间:构建子模块(如果更改)和启动应用程序也需要几分钟。因此我正在考虑使用 JRebel 来加速整个过程。但我不知道JRebel是否真的可以帮助我。大部分时间我都在子模块中工作。因此,依赖项的更改需要部署在我正在运行的 Web 应用程序中。
我在 http://en.wikipedia.org/wiki/JRebel 上读到 JAR 中的更新会被忽略。这仍然是真的吗?我看到有一些 JRebel 和 Eclipse 插件的 Maven 插件。他们可以管理整个过程还是我在浪费时间?
So I have a multi module Maven web app running in eclipse and tomcat with wtp.
However the deployment of the application takes some time: building sub modules if changed and starting the application takes also a couple of minutes. Thus I am thinking of using JRebel to speed up this whole process. But I do not know if JRebel can really help me. Most of the time I am working in the submodules. So the changes in the dependencies need to be deployed in my running web app.
I read on http://en.wikipedia.org/wiki/JRebel that updates in JARs are just ignored. Is this still true? I saw there are some kind of maven plugins for JRebel and Eclipse plugins. Can they manage this whole process or am I wasting my time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
维基百科页面上的信息太旧了,
这取决于您想做什么。如果您有子模块,我假设这些是包含在您的应用程序的 WEB-INF/lib 中的 JAR?在这种情况下,每个单独的模块都应该有一个专用的rebel.xml 配置文件,如下所示:
如果您使用子模块的源代码,这应该是正确的方法。但是,如果您只想交换 jar,也可以将它们映射到 Web 应用程序的rebel.xml 中。查看参考手册:
http://manuals.zeroturnaround.com/jrebel /standalone/config.html
当您使用 maven 时,明智的做法是使用 JRebel maven 插件生成rebel.xml 文件(只需将代码片段添加到 pom.xml 中):
http://manuals.zeroturnaround.com/jrebel/standalone/config.html#maven
The information at Wikipedia page is way too old
It depends what you would like to do. If you have submodules, I assume that these are JARs included to WEB-INF/lib of your application? In that case every individual modules should have a dedicated rebel.xml configuration file as follows:
This should be the correct way in case you work with the souce code of your submodules. But if you want just to swap jars it is also possible if you map those in rebel.xml of your web app. Take a look at the reference manual for this:
http://manuals.zeroturnaround.com/jrebel/standalone/config.html
As you're using maven, it could be wise to generate rebel.xml files using JRebel maven plugin (just add the code snippet to your pom.xml):
http://manuals.zeroturnaround.com/jrebel/standalone/config.html#maven