Provide OSGi conformant manifest headers in jar

Monday, 4 October 2010 · 3 messages
E
erdal.karaca.de4 Oct 2010 14:39 #
I am using the basex xquery implementation in an OSGi/Eclipse environment and need to provide/add additional manifest headers or wrap the delivered jar. I would like to have those manifest headers automatically included in the build, namely, these would be (minimally): Bundle-SymbolicName: org.basex.api Bundle-Version: 6.2.8.SNAPSHOT Export-Package: javax.xml.xquery, org.basex.api.xqj This way I would just require my components (jars/plugins/bundles) to depend on bundle org.basex.api and would not have to include/manage the basex versions myself...
CG
Christian Grün4 Oct 2010 15:58 #
Erdal, thanks for your request. The jar files are created via maven (mvn package); iI would be great if you could do some research how to extend the corresponding pom.xml files. Best, Christian
Quoted text · erdal.karaca.de · 15 lines
On Mon, Oct 4, 2010 at 2:39 PM, <erdal.karaca.de at googlemail.com> wrote: > I am using the basex xquery implementation in an OSGi/Eclipse environment and need to provide/add additional manifest headers or wrap the delivered jar. > I would like to have those manifest headers automatically included in the build, namely, these would be (minimally): > > Bundle-SymbolicName: org.basex.api > Bundle-Version: 6.2.8.SNAPSHOT > Export-Package: javax.xml.xquery, > org.basex.api.xqj > > This way I would just require my components (jars/plugins/bundles) to depend on bundle org.basex.api and would not have to include/manage the basex versions myself... > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
EK
Erdal Karaca4 Oct 2010 16:27 #
I have never worked with maven builds before, but the following tutorial seems to be a good starting point...http://wso2.org/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin 2010/10/4, Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 31 lines
> Erdal, > thanks for your request. The jar files are created via maven (mvn > package); iI would be great if you could do some research how to > extend the corresponding pom.xml files. > > Best, > Christian > > > > On Mon, Oct 4, 2010 at 2:39 PM, <erdal.karaca.de at googlemail.com> wrote: >> I am using the basex xquery implementation in an OSGi/Eclipse environment >> and need to provide/add additional manifest headers or wrap the delivered >> jar. >> I would like to have those manifest headers automatically included in the >> build, namely, these would be (minimally): >> >> Bundle-SymbolicName: org.basex.api >> Bundle-Version: 6.2.8.SNAPSHOT >> Export-Package: javax.xml.xquery, >> org.basex.api.xqj >> >> This way I would just require my components (jars/plugins/bundles) to >> depend on bundle org.basex.api and would not have to include/manage the >> basex versions myself... >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >
-- 1 + 1 = 10

⚡Generated with XQuery