It's a bit more complex than that...you need to define the bundle imports and exports, make sure all dependencies are available as OSGi bundles, remove any Class.forName's in the code, etc, etc.
See for example the WSS4J pom: https://svn.apache.org/repos/asf/webservices/wss4j/trunk/pom.xml I might be able to help out with this for the next release. Colm. On Fri, Jun 29, 2012 at 1:49 PM, Sarris Overbosch | Everett < [email protected]> wrote: > Hi Francesco, > > There nothing much to it, according to the customer. What they do is the > following: > > Change the following in client/pom.xml > 1) alter the packaging type > <packaging>jar</packaging> > to > <packaging>bundle</packaging> > 2) Add a plugin to the build part > > <plugins> > <plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-bundle-plugin</artifactId> > <extensions>true</extensions> > <version>2.3.6</version> > </plugin> > </plugins> > > This will result in a MANIFEST.MF which contains OSGi information and thus > the package can be deployed in an OSGi container. > > > > On 29-06-12 13:07, Francesco Chicchiriccò wrote: > > On 29/06/2012 10:56, Sarris Overbosch | Everett wrote: > > Hi, > > Is it possible to change the build process for Syncope in such a way > that OSGi information is available in the generated jar files? A > customer which heavily uses the OSGi framework would happy with this > addition and as OSGi is getting more and more a defacto standard it > would make sens to put this information is (by using the > maven-bundle-plugin from the felix project). Can and will this be done > or are there any reasons not to include the OSGi information? > > Hi Sarris, > there isn't any reason to exclude OSGi support: only, we would need > someone with enough OSGi skills wanting to contribute (I am personally > not one of such...). > > I can think that it would be a nice add-on for Syncope to be available > either as JEE and OSGi, even though I haven't encountered many OSGi > business cases so far. > > Regards. > > > > -- > Met vriendelijke groet / best regards, > > Sarris T.L. Overbosch | Senior Technical Consultant Application > Integration Services (AIS) > everett ► > TRUSTED TO KNOW | HOW > ------------------------------ > Wiersedreef 5-7, 3433 ZX Nieuwegein, the Netherlands > P.O. Box 1487, 3430 BL Nieuwegein, the Netherlands > > Tel: +31 (0)30 659 2255 > Fax: +31 (0)30 659 2256 > GSM: +31 (0)6 18 38 85 46 > Email: [email protected] > Website: www.everett.nl > ------------------------------ > The information in this Internet email is confidential and may be legally > privileged. It is intended solely for the addressee. > Access to this Internet email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, > distribution or any action taken or omitted to be taken in reliance on it > is prohibited and may be unlawful. When addressed to our > clients any opinions or advice contained in this Internet email are > subject to the terms and conditions expressed in any applicable > governing Everett BV terms of business or client engagement letter. > > > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
