kirviq / dumbster

Dumbster - a simple fake SMTP server for unit testing
Apache License 2.0
70 stars 39 forks source link

Add OSGi Support #1

Closed nfalco79 closed 8 years ago

nfalco79 commented 8 years ago

The bnd maven plugin produce OSGi manifest so it can run in an OSGi enviroment.

kirviq commented 8 years ago

Nice. I must admit I know next to nothing about how OSGi works, or why someone would want to deploy the dumbster as a service. But if a few lines in the MANIFEST.MF file help to make it work where it otherwise wouldn't, that's cool.

kirviq commented 8 years ago

Can you confirm that it works with this manifest? Then I'd create a 1.7.1 release for it.

nfalco79 commented 8 years ago

Yes, I replace the dumbster 1.6 embedded into an OSGi bundle and replace it with this new build placed in the repository (virgo server) with the releted import.

kirviq commented 8 years ago

hmm, with this chageset mvn clean package generates a nice jar file, but mvn gpg:sign-and-deploy-file uploads a .bundle file. I'll have to check what this is and why.

kirviq commented 8 years ago

I got the maven plugins configured to do what they should and released version 1.7.1 with OSGi manifest.