On 29/06/2012 14:55, Colm O hEigeartaigh wrote: > > 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 have also doubts about the fact that our main artifact (syncope-core) is a WAR, not a JAR (but my knowledge about OSGi is *really* limited...). > I might be able to help out with this for the next release. This sounds quite cool :-) > 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. > -- Francesco Chicchiriccò ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member http://people.apache.org/~ilgrosso/
