2009/9/2 Dmitri Plavjanich <[email protected]>

> I would like to embed unpacked jars in my bundle and include those jars in
> my bundle classpath.


http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html#ApacheFelixMavenBundlePlugin%28BND%29-Embeddingdependencies


>  If I try to include the jars via dependencies they get
> unpacked; I don't want them to be unpacked.


http://felix.apache.org/site/apache-felix-bundle-plugin-faq.html#ApacheFelixBundlePluginFAQ-WhenIembedadependencywhydoIseeduplicatedcontent%3F


>  If I try to use the
> maven-dependency-plugin to place the jars into the resource directory at
> the
> compile phase then I get an odd exception:
>
> java.lang.IllegalArgumentException: Cannot write resource: lib/foo.jar
> java.io.IOException: Opening resource
>    at aQute.lib.osgi.Jar.writeResource(Jar.java:296)
>    at aQute.lib.osgi.Jar.write(Jar.java:205)
>    at aQute.lib.osgi.Jar.write(Jar.java:182)
>    at
> org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:311)
>    at
> org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:236)
>    at
> org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:227)
>
> - Dmitri
>

-- 
Cheers, Stuart

Reply via email to