|
|
|
Re: Maven plugin to deploy bundles to Virgo [message #774576 is a reply to message #774465] |
Wed, 04 January 2012 08:02 |
Glyn Normington Messages: 1222 Registered: July 2009 |
Senior Member |
|
|
Thanks Frieder. Nice work! If you decide at some point that there would be an advantage in contributing this project to Virgo, I would certainly be open to discussing that. The immediate benefits I can think of are uniformity of (a) license, (b) source code management, (c) documentation, (d) bug tracking, and (e) community feedback mechanisms such as this forum. If you prefer not, I quite understand.
For the benefit of others, the wiki section is here.
[Updated on: Wed, 04 January 2012 08:03] Report message to a moderator
|
|
|
|
Re: Maven plugin to deploy bundles to Virgo [message #778245 is a reply to message #773806] |
Wed, 11 January 2012 22:18 |
Rafal Krzewski Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Thanks for sharing your work, Frieder!
I was wondering if you know about Cargo (cargo.codehaus.org). I believe that the code you've written could be integrated into Cargo to add support for Virgo as a J2EE container.
Cargo is quite popular and it supports OSGi bundle deployment support alongside with "traditional" J2EE artifacts, so this seems to be a natural match.
Deploying bundles is great, but I think it's also important to provide a mechanism for deploying other Virgo artifacts: plans and PARs. A first step towards that would be making them first class Maven artifacts by defining new packaging types. Unfortunately "par" is already taken (EJB 3.0 persistence archive) - "virgo-par" could serve as an alternative. For plans, "virgo-plan" could be used for symmetry. File name extensions of the actual artifacts could be .par and .xml respectively, it's just the packaging type that needs to be distinct to avoid clashing with other tools.
Supporting plans is rather trivial - there's nothing to do except in install and deploy lifecycle phases. PAR support is a bit more involved - constituent bundles should artifacts need to collected through Maven dependencies, .properties files should be added from src/main/resources (or src/main/configuration) and possibly a plan could be generated - PARs can contain a nested plan to determine startup ordering, if my memory serves me. Plan generation should be optional, and the required configuration should be minimal - usually there's only a few bundles for which the order matters, so it would be convenient to spell out only those and have the rest added after them automatically.
Cargo supports container type specific deployable types, so the PARs and plans could be deployed in an uniform way.
That's exciting stuff. I wish I had time to sit down and work on it myself
Regards,
Rafał
|
|
|
Re: Maven plugin to deploy bundles to Virgo [message #778966 is a reply to message #778245] |
Sat, 14 January 2012 08:45 |
Frieder Heugel Messages: 61 Registered: October 2010 Location: Basel, CH |
Member |
|
|
Hi Rafal
I think it's an interesting idea to support plans/pars as well. As soon as I have some leisure time I'll check whether or not there is MBean support for these artefact types and in case there is support for it I'll start working on this.
I didn't know about Cargo until now. I had a quick look and it seems to be an interesting project but I have to read a little more about it. I talked to Glyn this week and I'm going to contribute the project to Virgo. For the moment that's my priority. Once this has been done I can also take a look on the Cargo integration but no promises on this.
Wish all of you a nice weekend.
Bye
Frieder
[Updated on: Sun, 15 January 2012 09:07] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05407 seconds