Dear Qi4j developers, I recently asked Edward Yakop if OSGi is beneficial when used together with Qi4j, and that currently Qi4j is not working with OSGi (yet).
I'm already an OSGi user, and there is an app that I want to incorporate Qi4j within it. (...porting, maybe?) I'm not planning to do "dynamic-*" stuff yet with the Qi4j-ed parts. Just static stuff. Similar to the way we use Apache Commons Logging with OSGi. Essentially Import-Package and Export-Package manifest entries; no services, no activators. Edward says that Qi4j JARs don't have OSGi manifests yet, and this is what the primary blocker right now. A few hours (sorry) of Qi4j POM hacking results in this: [EMAIL PROTECTED]:~/project/qi4j/project/core/bootstrap$ mvn clean package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Qi4J Core - Bootstrap [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory /home/ceefour/project/qi4j/project/core/bootstrap/target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 18 source files to /home/ceefour/project/qi4j/project/core/bootstrap/target/classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [bundle:bundle] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Tue Jul 08 16:12:17 WIT 2008 [INFO] Final Memory: 12M/75M [INFO] ------------------------------------------------------------------------ [EMAIL PROTECTED]:~/project/qi4j/project/core/bootstrap$ unzip -p target/qi4j-core-bootstrap-0.3-SNAPSHOT.jar META-INF/MANIFEST.MF Manifest-Version: 1.0 Export-Package: org.qi4j.bootstrap;uses:="org.qi4j.composite,org.qi4j. runtime.composite,org.qi4j.runtime.structure,org.qi4j.structure,org.q i4j.runtime.object,org.qi4j.runtime.entity.association,org.qi4j.util, org.qi4j.runtime.entity,org.qi4j.spi.service.provider,org.qi4j.entity ,org.qi4j.property,org.qi4j,org.qi4j.runtime.service.qi,org.qi4j.serv ice,org.qi4j.object,org.qi4j.runtime,org.qi4j.runtime.property";versi on="0.3.0.SNAPSHOT" Built-By: ceefour Tool: Bnd-0.0.255 Bundle-Name: Qi4J Core - Bootstrap Created-By: Apache Maven Bundle Plugin Bundle-Version: 0.3.0.SNAPSHOT Build-Jdk: 1.6.0_06 Bnd-LastModified: 1215508336933 Bundle-ManifestVersion: 2 Bundle-License: http://www.apache.org/licenses/LICENSE-2.0 Import-Package: org.qi4j;resolution=optional,org.qi4j.bootstrap;resolu tion=optional;version="0.3.0.SNAPSHOT",org.qi4j.composite;resolution= optional,org.qi4j.entity;resolution=optional,org.qi4j.object;resoluti on=optional,org.qi4j.property;resolution=optional,org.qi4j.runtime;re solution=optional,org.qi4j.runtime.composite;resolution=optional,org. qi4j.runtime.entity;resolution=optional,org.qi4j.runtime.entity.assoc iation;resolution=optional,org.qi4j.runtime.object;resolution=optiona l,org.qi4j.runtime.property;resolution=optional,org.qi4j.runtime.serv ice.qi;resolution=optional,org.qi4j.runtime.structure;resolution=opti onal,org.qi4j.service;resolution=optional,org.qi4j.spi.service.provid er;resolution=optional,org.qi4j.structure;resolution=optional,org.qi4 j.util;resolution=optional Bundle-SymbolicName: org.qi4j.core.qi4j-core-bootstrap A nice start, don't you agree? I'm hoping that OSGi can get support, if not fully then at least OSGi manifests first. Thanks to Pax/OPS4J/Apache/aQute maven-bnd plugin makes it easier to do this. Besides it won't hurt at all for the rest of the "Qi4j sans OSGi" users right? Thank you. -- Best regards, Hendy Irawan
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

