Deploy OSGi bundle to Glassfish 3.1.1 from Eclipse
Hi.
My project consist of one typecal web-project (producing war) and great count OSGI-module projects producing bundles. I use maven and m2eclipse plugin and glassfish wtp connector, using this connector I deploy the war-project from Eclipse. Now I want in similar way to deploy from Eclipse the bundle projects to Glassfish server. Is there approach to deploy bundles from Eclipse into Glassfish? Now I write the cmd-script that rebuild bundle project with maven and copy the artifact to /autdeploy/bundles directory of Glassfish server. It will be great if there are plugin that automatically do this operation after project changes.
It seems there are no so options.
I decided to use maven and m2eclipse, the antrunner was configured to copy file to glassfish autodeploy/bundles directory on project deploy and deploy process initiated from eclipse using m2eclipse features.
That seems to be a severe limitation of the wtp/gf plugin. Would you
mind filing a bug against them when you have time?
Good to know you have successfully worked around the issue.
Sahoo
On Thursday 23 February 2012 04:48 AM, forums@java.net wrote:
> It seems there are no so options.
>
> I decided to use maven and m2eclipse, the antrunner was configured to
> copy
> file to glassfish autodeploy/bundles directory on project deploy and
> deploy
> process initiated from eclipse using m2eclipse features.
>
>
> --
>
> [Message sent by forum member 'cnt01']
>
> View Post: http://forums.java.net/node/883688
>
>
OK, I will create the report about this limitation. Thank you for your interest.





I have not used glassfish wtp myself, but check if it has an option to
pass additional deploy command options. If yes, then you could pass
"--type osgi" to the deploy command to deploy the bundles. I am not sure
who in GF knows about this plugin.
Sahoo
On Tuesday 21 February 2012 10:58 PM, forums@java.net wrote:
> Hi.
>
> My project consist of one typecal web-project (producing war) and great
> count OSGI-module projects producing bundles. I use maven and m2eclipse
> plugin and glassfish wtp connector, using this connector I deploy the
> war-project from Eclipse. Now I want in similar way to deploy from
> Eclipse
> the bundle projects to Glassfish server. Is there approach to deploy
> bundles
> from Eclipse into Glassfish? Now I write the cmd-script that rebuild
> bundle
> project with maven and copy the artifact to /autdeploy/bundles
> directory of
> Glassfish server. It will be great if there are plugin that
> automatically do
> this operation after project changes.
>
>
>
>
> --
>
> [Message sent by forum member 'cnt01']
>
> View Post: http://forums.java.net/node/883688
>
>