Hello!

Thank you for your help, it now works.

For everybody, having similar problems, here is my
maven-bundle-plugin configuration.
Since the packages imported by my bundles are disjoint, I added
;-noimport:=true to Export-Package, but I will think more about
whether this is good.


<!-- don't remove properties, even if they are empty!!! -->
<properties>
<osgi.rootPackage>deus.storage</osgi.rootPackage>
<osgi.additionalPackageImports>org.springframework.orm.jpa.support</osgi.additionalPackageImports>
<osgi.nonExportedPackages>!*.impl</osgi.nonExportedPackages>
</properties>

...
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>

<!--
export all packages below the root package (except non exported
packages), and don't reimport them! more on importing exported
packages here:
http://www.osgi.org/blog/2007/04/importance-of-exporting-nd-importing.html
-->
<Export-Package>${osgi.nonExportedPackages},${osgi.rootPackage}.*;-noimport:=true</Export-Package>

<!--
include all other packages (also the non exported packages!) as
private. Export-Package takes precedence over Private-Package!
-->
        
<Private-Package>${osgi.rootPackage}.*;-split-package:=merge-first</Private-Package>

<!--
remove the BND internal header, that just states, which packages are
ignored by BND
-->
<_removeheaders>Ignore-Package</_removeheaders>

<!-- add additional package imports -->
<Import-Package>${osgi.additionalPackageImports},*</Import-Package>

</instructions>
</configuration>
</plugin>



Bye,

Florian

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to