orientdb download distributions on orientdb.org miss OSGi Headers
Hi,
I recognized that the 1.3.0 distribtutions on orientdb.org miss the OSGi Manifest Headers. However the orientdb 1.3.0 bundles I consume via maven contain those headers.
Regards David
Hello David,
That's because they run over different build systems. If i remember correctly, Luca kept the Ant build mainly because of the Unit-Testing. Only the Maven build was adapted to supply Module Metadata so far.
Also see: http://code.google.com/p/orient/issues/detail?id=172 http://code.google.com/p/orient/issues/detail?id=558
You can wrap it yourself with bnd and following bundle-bnd definitions. (At this moment necessary anyway, since the maven pom - as i just noticed - declares orient-commons as a fragment to orientdb-core)
These wrap-settings work for me:
orient-commons.bnd
Bundle-SymbolicName: com.orientechnologies.common
Bundle-Version: 1.3.0
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-Name: Orient Commons
Bundle-Category: database
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-Vendor: NuvolaBase Ltd
Bundle-DocURL: http://www.orientdb.org/
Import-Package:\
javax.*; resolution:=optional,\
!org.testng.*, \
!sun.misc*, \
*; resolution:=optional
Export-Package:\
com.orientechnologies.common.*
Private-Package:\
com.orientechnologies.common.test.*
orientdb-core.bnd
Bundle-SymbolicName: com.orientechnologies.orient.core
Bundle-Version: 1.3.0
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-Name: OrientDB Core
Bundle-Category: database
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-Vendor: NuvolaBase Ltd
Bundle-DocURL: http://www.orientdb.org/
Import-Package:\
javax.*; resolution:=optional,\
com.orientechnologies.common.*,\
*; resolution:=optional
you can wrap it via bnd -wrap -properties orient-commons.bnd orient-commons.jar
Kind Regards, Tim
Thanks for your answer. I am using maven repo so I do not need to wrap this stuff but for others downloading the distribution and not using Maven for their OSGi development it would be the best if distribution also had OSGi Headers
Can we automate it in ANT too?
It is doable with Ant if you also pull Ivy in which will understand bnd instructions see: http://ant.apache.org/ivy/history/trunk/osgi/standard-osgi.html
But I would suggest to go completely the maven way you can use the maven-assembly-plugin to pack your distribution. So you don't have to manage your configuration twice for ANT and Maven
bnd also supplies ant tasks with its default distribution