MINDEXER-100: forward port 5.x changes to master

Squashed from
https://github.com/apache/maven-indexer/pull/14
30 files changed