Search code examples
eclipsedeploymentglassfishadapter

Eclipse Glassfish, not publishing changes to required projects


My setup is as follows:

I am using Eclipse Version: Juno Service Release 2 Build id: 20130225-0426 and Glassfish 3.1.2.

The glassfish adapter is version 5.0.1.201201241920

I have war maven project that is set up to require a jar maven project.

I've configured the war Deployment assembly to include the jar project.

I've turned off automatic publishing to glassfish (but turning it on does not solve the problem)

The problem:

If I make a change to a class in the jar project, the server will change its status to "started publish". Indicating that it knows resources have changed and a publish is required. However if I right click on the server and click publish it does not popup the publishing dialog box indicating that it is copying the resources over to glassfish and the server does not redeploy the add. The server then indicates it is synchronized but the changes made to the required jar project are not on the server.

If I make a change to the war project and right click publish, the all the resources are copied over to the glassfish server. Including the changes to the required jar project.

Solutions:

I think this is a bug, but is someone has a configuration solution that would be solve this issue.

If this is a bug where do I log it? The eclipse bugzilla does not seem to have a section for glassfishs adapter bugs.

Can anyone confirm whether indigo has this problem? I have just upgraded from HElios but will downgrade to Indigo if need be.


Solution

  • My current work around is set glassfish to publish on build and then run project clean all when I want to publish. But this is annoying as the code is deployed after each build and most times this is unnecessary.