infinispan-core uses Blueprint to export some services related to configuration parsing or marshalling. Without Blueprint, it would not be possible to parse Infinispan configuration files. These services would have to be exported in a different way.
Since we are not sure about your local environment - could you please help us a little bit and do an experiment?
Could you please:
- take the latest infinispan-embedded (or remote) artifact (it's called an Uber Jar - they should contain all necessary dependencies)
- modify MANIFEST.MF and make Blueprint optional
- check if you can start infinispan embedded (or connect to the remote cluster - depending on your use case)
I included the modified infinispan-embedded bundle as well as a modified version of the infinispan-tree bundle in my OSGi environment.
But starting Infinispan fails with:
Caused by: java.lang.NullPointerException
In that case this is a new feature request (please track it in [ISPN-6287] Make blueprint optional in OSGi manifests - JBoss Issue Tracker). The easiest work around is to put Blueprint inside your container.
I also highly encourage you to adjust ServiceTracker and other bits to suite your needs and create a Pull Request.
Please contact me in case of any questions.