Can you add 2 OSGi facets to one module?

I'm trying to use the new OSGi support in Maia.

I'd like to add two OSGi facets to one IDEA module so that 2 bundles are created from one module. The first bundle is my application and the second bundle is a test harness that exercises the application. Currently, it doesn't look like I am able to add two facets to one module, so I created two modules.Is this the correct approach?

2 comments
Comment actions Permalink

Hi Hamlet,  It is not possible to add more than one OSGi facet to a module. It is a good idea to extract the tests of a bundle into an extra bundle since otherwise the tested bundle would need to have dependencies on junit and other test specific libraries that you don't want it to have once it is deployed in your application. Please note that we currently lack the support for running tests inside an OSGi container. You won't be able to rely on dynamic services, activators and other OSGi specific stuff that depends on a running OSGi.  For this again: more detailed discussions next week once I'm back from vacation.  Best regards,  Robert

0
Comment actions Permalink

http://www.hairhey.com a few dangling chains that hang around our face or atop your hair http://www.jewelryover.com/tiffany-bangles.html If you are concerned about tangling your own hair http://www.jewelryover.com by a straight http://www.hairhey.com black wig and add your accessories on it This method can be much easier than worrying about adding items to your own hair and much less frustrating since you can actually see your work as you go http://www.hairhey.com  Whether simple or elaborate Cleopatra Halloween Costumes are fun to wear If you have sewing or crafting as a hobby you will enjoy creating one of these elaborate costumes Remember the importance of comfort and safety Keep the headdress ornamentation light in weight and dont add decorations that

---
Original message URL: http://devnet.jetbrains.net/message/5274470#5274470

0

Please sign in to leave a comment.