如何“热”使用Jboss Tools Eclipse插件在Jboss中部署战争依赖 [英] How to "hot" deploy war dependency in Jboss using Jboss Tools Eclipse plugin?

查看:130
本文介绍了如何“热”使用Jboss Tools Eclipse插件在Jboss中部署战争依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Jboss工具(3.0.0 alpha,在Eclipse 3.4上)来热点部署我在Jboss 4.2.3上的战争。
我的战争取决于另一个项目(包装在一个罐子里)我正在工作。
但是,当我在该项目(jar项目)中保存文件时,Jboss Tools会重新发布war项目的编译类,但是不会重新部署在jar项目中更改的类(实际上war项目是在部署目录中部署分解,但是jar项目作为jar在WEB-INF / libs目录中部署)
我希望eclipse和JBoss工具从jar项目重新发布类,例如他们为战争项目中的JSP和课程做了...
谢谢你的帮助!
Anthony

I'm using Jboss tools (3.0.0 alpha, on Eclipse 3.4) to hot deploy my war on Jboss 4.2.3. My war depends on another project (packed inside a jar) I 'm working on. But, when I save a file in this project(the jar project), Jboss Tools republish the compiled classes of the war project, but does not re deploy the classes changed in the jar project.(actually the war project is deployed "exploded" in the deploy directory, but the jar project is deployed, as a jar, in the WEB-INF/libs directory) I would like eclipse and JBoss tools to republish the classes from the jar project, like they do for the JSPs and classes inside the war project... Thank you for your help ! Anthony

推荐答案

为了发生这种情况,您需要将您的jar作为依赖实用程序jar,以便通过网络打包工具会发生,它也会打包jar的更改。

For that to happen you need your jar to be a dependent utility jar so when the packaging via web tools happens it will package the jar changes too.

如果这样没有足够的灵活性,那么您可以考虑使用JBoss Tools的项目存档功能,该功能允许您定义依赖项就像你想要的那样。

If that is not enough flexibility for you then consider using the Project Archives functionality of JBoss Tools which allows you to define the dependencies as you want it.

ps使用像JavaRebel这样的解决方案,如果问题是要复制正确的文件,就没有帮助。

p.s. using solutions like JavaRebel does not help if the problem is about getting the proper files copied.

这篇关于如何“热”使用Jboss Tools Eclipse插件在Jboss中部署战争依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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