You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by saravana prakash <sa...@gmail.com> on 2010/10/29 10:44:03 UTC
Error when creating a bundle of all dependencies using wrap
Hi,
I am trying to package all the dependencies as one bundle and here is what
the POM looks like
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.1</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>
org.osgi.framework,
*;resolution:=optional
</Import-Package>
</instructions>
</configuration>
<executions>
<execution>
<id>wrap-my-dependency</id>
<phase>process-classes</phase>
<goals>
<goal>wrap</goal>
<goal>bundleall</goal>
</goals>
<configuration>
<wrapImportPackage>;</wrapImportPackage>
</configuration>
</execution>
</executions>
</plugin>
I get the following error when I try to do package.
Classpath is empty. Private-Package and Export-Package can only expand from
the classpath when there is one
Instructions in Private-Package, or -testpackages that are never used: .*
Did not find matching referal for *
Error <bundle name> jar is empty.
Has someone encountered this error before. Also is there a better way of
building the bundle out of the dependencies,
Thanks,
Saravanaprakash