How can I hot deploy using the glassfish adapter in Eclipse

前端 未结 2 1907
不知归路
不知归路 2021-01-06 17:35

Has anyone gotten the glassfish v3 adapter to work with Eclipse without restarting every time there\'s a code change? I tried to set this up but the adapter \"republishes\"

相关标签:
2条回答
  • 2021-01-06 18:15

    There is 'hack' that I use and works fine with maven, eclipse & GF4 hot deployment. Navigate inside your workspace where you have you xhtml project. open .project file edit

    <buildCommand>
       <name>org.eclipse.m2e.core.maven2Builder</name>
       <arguments></arguments>
    </buildCommand>
    

    Modify to:

    <buildCommand>
       <name>org.eclipse.m2e.core.maven2Builder</name>
       <triggers>incremental,</triggers>
       <arguments></arguments>
    </buildCommand>
    

    It works just fine for, but it might cause weird build issues (haven't tried for a long time so can't really say so use with case.)

    0 讨论(0)
  • 2021-01-06 18:16

    I just did a test and configuring the adapter to Never publish automatically works as expected:

    With this setup, I have to publish changes manually.

    I'm using Eclipse 3.5 with the latest version of the GlassFish v3 adapter. It just works.

    0 讨论(0)
提交回复
热议问题