-
Notifications
You must be signed in to change notification settings - Fork 476
Description
Describe the bug
When using the org.eclipse.milo.milo-sdk-client Maven artifact as a bundle in an OSGi context there are Missing Constraint errors due to imported packages in the MANIFEST.MF:
org.eclipse.milo.stack-core:
Missing Constraint: Import-Package: sun.security.provider.certpath; version="0.0.0"
org.eclipse.milo.sdk-client:
Missing Constraint: Import-Package: org.eclipse.milo.shaded.com.google.common.collect; version="0.0.0"
The error with the sun.security.provider.certpath package has already been fixed a while ago with #1175, but the changes were dropped with the 1.0.0 release.
For the second error I looked through the MANIFEST.MF files of sdk-client and stack-core. sdk-client wants to import org.eclipse.milo.shaded.com.google.common.collect, but stack-core only exports com.google.common.collect. I've read into it and it seems that the maven-bundle-plugin writes the MANIFEST.MF file before the maven-shade-plugin creates the milo.shaded package, leading to the shaded package not beeing written into the manifest.
Expected behavior
No error should occur when using Milo in an OSGi context.
Additional context
Eclipse Milo version: 1.1.0