MINDEXER-101: Forward port OSGI improvements to master

Original work done in MINDEXER-97.

Squashed from
https://github.com/apache/maven-indexer/pull/15
9 files changed