Hi,

usually you should add those as dependencies with maven.
If you have the following in your maven-bundle-plugin configuration those
dependencies are embedded.

<Embed-Dependency>*; scope=compile; type=!pom</Embed-Dependency>

and sometimes also helpfull:
<Embed-Transitive>true</Embed-Transitive>

regards, Achim


2013/10/22 CLEMENT Jean-Philippe <[email protected]>

> In some bundles I have to embed jar files. Do jar files need to be added
> to the Maven repository or may they directly be used from a resource
> directory?****
>
> ** **
>
> JP****
>
> ** **
>
> ** **
>
> *De :* CLEMENT Jean-Philippe [mailto:
> [email protected]]
> *Envoyé :* vendredi 18 octobre 2013 16:02
> *À :* [email protected]
> *Objet :* RE: maven-bundle-plugin and blueprint****
>
> ** **
>
> Great, thanks !****
>
> ** **
>
> JP****
>
> ** **
>
> *De :* Achim Nierbeck [mailto:[email protected]]
> *Envoyé :* vendredi 18 octobre 2013 11:49
> *À :* [email protected]
> *Objet :* Re: maven-bundle-plugin and blueprint****
>
> ** **
>
> Hi Jean-Phillippe, ****
>
> ** **
>
> as long as you have a proper maven structure, it should already be
> included, you don't need a special tag for the maven-bundle-plugin to do
> so. ****
>
> ** **
>
> following structure is usually needed for maven built projects: ****
>
> ** **
>
> /src/main/java****
>
> /src/main/resources/****
>
> /src/test/java****
>
> /src/test/resources****
>
> ** **
>
> just place your blueprint.xml in the /src/main/resources/OSGI-INF/ folder
> and it will be inside your jar/bundle and therefore already in the right
> place to be picked up by the blueprint-extender. ****
>
> ** **
>
> regards, Achim ****
>
> ** **
>
> 2013/10/18 CLEMENT Jean-Philippe <[email protected]
> >****
>
> Dear Karaf Team,
>
> I would like to use Maven (maven-bundle-plugin) as build tool instead of
> Ant.
>
> What would be the best approach to build blueprint-enabled bundles - which
> maven-bundle-plugin tags should I add in the pom in order the blueprint
> files to be included in the bundle?
>
> JP****
>
>
>
> ****
>
> ** **
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
> Commiter & Project Lead
> blog <http://notizblog.nierbeck.de/> ****
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to