Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Manifest should not include OSGi ImportPackage #351

Closed
BryanHunt opened this issue Jul 29, 2017 · 1 comment
Closed

Manifest should not include OSGi ImportPackage #351

BryanHunt opened this issue Jul 29, 2017 · 1 comment

Comments

@BryanHunt
Copy link

BryanHunt commented Jul 29, 2017

I'm trying to use pi4j-core 1.2.0-SNAPSHOT in an OSGi environment and it is not working. The Felix runtime complains that the packages imported by the bundle cannot be found. The problem is the ImportPackage declares that the bundle imports the same packages it exports. The fix is to simply remove the entire ImportPackage declaration.

@savageautomate
Copy link
Member

Done. 2e9dce6

Its was trickier than just removing an declaration. I actually had to add an declaration that described the packages that I wanted to explicitly exclude.

So now we end up with just this in the declaration generated in the OSGI bundle manifest.

Import-Package: javax.net.ssl,sun.misc

I'll have a new 1.2-SNAPSHOT build with this change uploaded in about 15 minutes.
Please let me know if this works for you.

Thanks, Robert

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants