开发者

How can I hot deploy using the glassfish adapter in Eclipse

开发者 https://www.devze.com 2022-12-24 11:54 出处:网络
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\" every time I change any fil

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" every time I change any file, 开发者_JS百科which is very annoying. It takes up to 3 minutes and locks up my machine for a second.

I must remember to constantly stop the adapter before making any changes. I'd settle for just disabling this "feature", but even if I uncheck "publish change immediately" this behavior still happens.

I'm using the latest version of the glassfish adapter and tried with eclipse 3.5 and the 3.6 milestone builds....

What setup is everyone using if you have glassfish v3 as your server? Is there any way to actually get the hot deploy feature to work correctly?


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

How can I hot deploy using the glassfish adapter in Eclipse

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.


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

精彩评论

暂无评论...
验证码 换一张
取 消