Hi, Francesco, 1) we deploy Syncope common and client bundle into Karaf container (Felix/Equinox) using feature xml file Something like: <feature name='syncope-common' > <feature version="[2.5.6,4)" prerequisite="true">spring-web</feature> <bundle>mvn:javax.validation/validation-api/1.1.0.Final</bundle> <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.2.2</bundle> <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.2.2</bundle> <bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.2.2</bundle> <bundle>mvn:org.apache.commons/commons-lang3/3.3.2</bundle> <bundle>mvn:org.apache.syncope/syncope-common/1.2.3</bundle> </feature>
Currently we only able to deploy Syncope common/client into OSGi container, but not for Syncope core/console, it's a little bit hard to make syncope core running in the OSGi container, so in our case, Syncope core is still on Tomcat, but it can be operated from OSGi container (by common/client bundle). 3) For most of the case, the maven-bundle-plugin will generate correct MANIFEST without extra configuration. I think some of the configuration (Import-package, Export-package, etc) are not necessary in the pom.xml files of 1.2.X. 4) I also noticed that Syncope projects will build normal jars instead of bundles in master branch. But what's the reason? Any plan to make Syncope 2.0 also OSGi ready? Thanks Xilai -----Original Message----- From: Francesco Chicchiriccò [mailto:ilgro...@apache.org] Sent: Friday, April 17, 2015 7:17 PM To: dev@syncope.apache.org Subject: Re: OSGi support On 16/04/2015 12:19, Francesco Chicchiriccò wrote: > Hi all (and especially OSGi experts), > the recent issue SYNCOPE-659 brought my attention to our OSGi support. > > AFAICT we provide some configurations via maven-bundle-plugin, but > this is actually missing from master, as a consequence of code > re-organization as per SYNCOPE-620. > > My questions (as an almost-completely OSGi unaware): > > 1. how do you deploy Syncope 1.2.X in an OSGi container (say Apache > Felix)? Can this be documented somewhere in our wiki? > 2. is there any best practice for running integration tests in an > OSGi container, similarly to what we currently do with Apache Tomcat? > 3. is there any way to automate the maven-bundle-plugin configuration > thus avoiding the pitfalls just fixed in SYNCOPE-659? > 4. is there anyone willing to step in for making Syncope 2.0.0 (e.g. > the current version on master branch) OSGi-ready? About (1) and (2) I've found this post [1] from Shiro's PMC chair Les Hazlewood which looks really promising. Since it is from 2010, it might have been superseded in the meanwhile; any suggestion? Regards. [1] http://leshazlewood.com/2010/09/08/osgi-maven-pax-and-web-applications/ -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Involved at The Apache Software Foundation: member, Syncope PMC chair, Cocoon PMC, Olingo PMC http://people.apache.org/~ilgrosso/