Add jar to apache felix in Pom file?

Posted by drozzy on Stack Overflow See other posts from Stack Overflow or by drozzy
Published on 2011-02-02T14:33:29Z Indexed on 2011/02/02 15:25 UTC
Read the original article Hit count: 428

Filed under:
|

How can I add a jar to my bundle in Apache Felix?

I am using maven, with maven-bundle-plugin to manage my bundles in OBR for me.

But I am not sure where to declare the dependency inside my POM on the jar, so that maven correctly compiles it into the final bundle.

This is how my plugin looks in pom:

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.1.0</version>
<extensions>true</extensions>
<configuration>
    <instructions>
        <Bundle-Category>sample</Bundle-Category>
        <Bundle-SymbolicName>${artifactId}
                 </Bundle-SymbolicName>
        <Export-Package>
            //blahblah
        </Export-Package>
    </instructions>

    <!-- OBR -->
    <remoteOBR>repo-rel</remoteOBR>
    <prefixUrl>file:///C:/Users/blah/Projects/Eclipse3.6-RCP-64/Felix/obr-repo/releases</prefixUrl>
    <ignoreLock>true</ignoreLock>
</configuration>

© Stack Overflow or respective owner

Related posts about osgi

Related posts about apache-felix