-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing OSGI package-exports from core-module #288
Comments
To be honest I know next to nothing about OSGI and the only reason the headers you mention are there is because of pull request #146. So if you know how to fix this, by all means, open a pull request. |
Hi, I stumbled upon the same problem, while trying to use simple-java-mail within an Apache Karaf Runtime Environment. Exports for internal packages are missing. I guess they're not exported autoamtically, because of the ".internal." part in the package names. It's best practice to not export internal packages and the maven-bundle-plugin perhaps follow this practice if running with defaults. Therefore I created a simple test project simple-java-mail-osgi.zip to re-bundle all needed simple-java-mail modules into one osgi bundle with complete package export/import declarations. There are just some extra instructions for the maven-bundle-plugin needed to achieve this. The bundle deployed and resolved straightforward and I start trying to use it. But when trying to compose an email via Why is simple-java-mail relying on the jacoco offline agent during runtime? Is this a result of the jacoco I hope someone could check my attached solution and acknowledges the results. Thanks! Kind regards, Stacktrace: stacktrace.txt |
It doesn't rely on it in runtime, not sure why you get that result (did you locally build Simple Java Mail and do an
The project packages fine for me but I have no idea how to test this and to reproduce your problem. Perhaps you can have another look with a later version (I just released 6.7.5)? That would be much appreciated |
Hi!
Thank you for providing OSGI-headers in simple-java-mail to make it deployable as bundle! Unfortunately I get some trouble when trying to deploy it, together with it's required OSGI-bundles (core-module, jakarta.mail, jakarta.activation, emailaddress-rfc2822, jetbrains-runtime-annotations). I get some errors in the OSGI console (specifically, I'm using Felix in Apache Sling ):
It seems all these packages are contained in the core-module, which was successfully deployed and active. But it does not export those: it's exported packages are
Could you please fix this? Thank you very much!
Best regards,
Hans-Peter Störr
The text was updated successfully, but these errors were encountered: