JRebel的配置不起作用

时间:2012-05-15 19:57:13

标签: intellij-idea glassfish-3 jrebel

我在IntelliJ中有一个复杂的maven项目,我不想在其中使用JRebel来加快开发时间。该项目以这种方式组成:

ERP-HM
模NFE

assinador-NFE
importador-NFE
合成-NFE
编组-NFE
persistencia

persistencia-银行
persistencia,文达
persistencia-cadastro
persistencia-NFE
persistencia-ERP
persistencia-pagamento-recebimento
persistencia-estoque
persistencia-utilidades
modulos幅

银行的Web
configuracao的Web
seguranca的Web
cadastro的Web
erp-web **
pagamento-recebimento的Web
COMPONENTES的Web
estoque的Web
文达 - 网
utilidades
gerador-relatorios

粗体的名称只是pom项目,法线是带代码的项目...... 项目erp-web是战争项目。 我用这种方式在ERP-HM项目中配置了JRebel插件:

<plugin>
    <groupId>org.zeroturnaround</groupId>
    <artifactId>jrebel-maven-plugin</artifactId>
    <version>1.1.3</version>
    <configuration>
       <packaging>war</packaging>
       <web>
           <resources>
               <resource>
               </resource>
           </resources>
       </web>
    </configuration>
    <executions>
        <execution>
             <id>generate-rebel-xml</id>
             <phase>process-resources</phase>
             <goals>
                 <goal>generate</goal>
             </goals>
        </execution>
     </executions>
</plugin>

在IntelliJ中,我已将项目配置为JRebel向导告诉:

IntelliJ JRebel configuration

已编辑:已添加jrebel日志

-------- HEADER --------
VERSION 2
JVM_ID 43ce9d1ce623bd1d7995a6d2c715000b
JVM_STARTED 1337341646006
LOG_STARTED 1337341646178
-------- EOF HEADER --------
[2012-05-18 08:47:26.187] Rebel properties loaded from /home/hudson/.IntelliJIdea11/config/plugins/jr-ide-idea/lib/jrebel/conf/jrebel.properties:
rebel.env.ide=intellij11
rebel.env.ide_server_start=true
rebel.env.java_version=java16
rebel.env.maven=true
rebel.env.operating_system=unix
rebel.env.server=glassfish
rebel.jasper_plugin=false
rebel.jboss_plugin=false
rebel.log=true
rebel.properties.version=2
rebel.stats.time=146
rebel.weblogic_plugin=false
rebel.websphere_plugin=false

[2012-05-18 08:47:26.196] Found a license file: /home/hudson/.jrebel/jrebel.lic
[2012-05-18 08:47:26.271] License information: {uid=ffc12cd3-d035-4576-871d-0e92fd9c38e5, Name=Hudson Assumpção, limited=true, GeneratedOn=Tue May 15 14:36:55 BRT 2012, Email=brevleq@gmail.com, Seats=1, Product=JRebel, limitedFrom=Sun May 13 14:36:55 BRT 2012, override=false, Organization=Gep, limitedUntil=Thu Jun 14 14:36:55 BRT 2012}
[2012-05-18 08:47:26.282] Now: Fri May 18 08:47:26 BRT 2012 Sun May 13 14:36:55 BRT 2012 Thu Jun 14 14:36:55 BRT 2012
[2012-05-18 08:47:26.282]  JRebel 4.6.2 (201205021440)
[2012-05-18 08:47:26.283]  (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
[2012-05-18 08:47:26.283] 
[2012-05-18 08:47:26.290]  Over the last 1 days JRebel prevented 
[2012-05-18 08:47:26.290]  at least 0 redeploys/restarts saving you about 0 hours.
[2012-05-18 08:47:26.290] 
[2012-05-18 08:47:26.291]  This product is licensed to Hudson Assumpção (Gep) 
[2012-05-18 08:47:26.298]  until June 14, 2012
[2012-05-18 08:47:26.298] 
[2012-05-18 08:47:26.299] *************************************************************
[2012-05-18 08:47:26.299]          Your license is about to EXPIRE!
[2012-05-18 08:47:26.300] *************************************************************
[2012-05-18 08:47:26.300] 
[2012-05-18 08:47:26.301]  This license will expire in 27 days and JRebel will
[2012-05-18 08:47:26.301]  stop working after that. Renew your license at:

[2012-05-18 08:47:26.301]     http://sales.zeroturnaround.com/?1339695415
[2012-05-18 08:47:26.302] JRebel is running with the following internal licensing configuration:
[2012-05-18 08:47:26.302]     License valid? true
[2012-05-18 08:47:26.302]     License flags: [none]
[2012-05-18 08:47:26.303]     License type: LIMITED

遗憾的是,当我更改代码并刷新浏览器时,JRebel无法工作......

2 个答案:

答案 0 :(得分:2)

我删除了maven插件并将此rebel.xml添加到我的Web应用程序的resources文件夹中:

<classpath>
    <dir name="/home/hudson/projetos/ERP-HM/modulos-web/erp-web/target/erp-web-0.1.0/WEB-INF/classes/">
        <include name="com/hrgi/**"/>
    </dir>
    <jarset dir="/home/hudson/projetos/ERP-HM/modulos-web/erp-web/target/erp-web-0.1.0/WEB-INF/lib">
        <include name="gerador-relatorios*.jar"/>
        <include name="assinador-nfe*.jar"/>
        <include name="compositor-nfe*.jar"/>
        <include name="importador-nfe*.jar"/>
        <include name="marshaller-nfe*.jar"/>
        <include name="banco-web*.jar"/>
        <include name="cadastro-web*.jar"/>
        <include name="componentes-web*.jar"/>
        <include name="configuracao-web*.jar"/>
        <include name="estoque-web*.jar"/>
        <include name="pagamento-recebimento-web*.jar"/>
        <include name="seguranca-web*.jar"/>
        <include name="venda-web*.jar"/>
        <include name="persistencia-banco*.jar"/>
        <include name="persistencia-cadastro*.jar"/>
        <include name="persistencia-erp*.jar"/>
        <include name="persistencia-estoque*.jar"/>
        <include name="persistencia-nfe*.jar"/>
        <include name="persistencia-pagamento-recebimento*.jar"/>
        <include name="persistencia-utilidades*.jar"/>
        <include name="persistencia-venda*.jar"/>
        <include name="utilidades*.jar"/>
    </jarset>
</classpath>

<web>
    <link target="/">
        <dir name="/home/hudson/projetos/ERP-HM/modulos-web/erp-web/target/erp-web-0.1.0"/>
    </link>
</web>

这里包含的罐子是完整的maven项目的一部分。现在JRebel工作正常......

答案 1 :(得分:1)

您是从“使用JRebel运行”按钮还是从正常的“运行”按钮设置它?

您必须启用日志记录 - 将日志发送到支持并告知您尝试更改哪个类