How can I hot deploy using the glassfish adapter in Eclipse

前端 未结 2 1933
不知归路
不知归路 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

    
       org.eclipse.m2e.core.maven2Builder
       
    
    

    Modify to:

    
       org.eclipse.m2e.core.maven2Builder
       incremental,
       
    
    

    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.)

提交回复
热议问题