Since MongoJackModule is in internal package therefore it is not accessible to register the custom ObjectMapper.
Basically this doesn't work in OSGi
MongoJackModule.configure(myObjectMapper);
One option would be to expose the internal package as well without any code change and this will be fully backward compatible. However, it breaks strong encapsulation which OSGi provides.
Fix/workaround - We just need to add one more package in maven-bundle-plugin
org.mongojack,org.mongojack.internal
if it is ok then I could provide a PR.
Thanks,
Rakesh
Since MongoJackModule is in internal package therefore it is not accessible to register the custom ObjectMapper.
Basically this doesn't work in OSGi
MongoJackModule.configure(myObjectMapper);
One option would be to expose the internal package as well without any code change and this will be fully backward compatible. However, it breaks strong encapsulation which OSGi provides.
Fix/workaround - We just need to add one more package in maven-bundle-plugin
org.mongojack,org.mongojack.internal
if it is ok then I could provide a PR.
Thanks,
Rakesh