AddFeaturesToRepoMojo should support read version from dependency features
features-maven-plugin collects wrong artifacts
From a quick glance at the source, I think that you are right. When resolving transitive features the version is not taken into account.
can be easily reproduced with openjpa (enterprise-) feature. It contains 2.2.2 and 2.3.0. If your feature references openjpa/2.2.2 the openjpa/2.3.0 gets placed into the assembly...
Thanks for the update. I'm adding itests on the karaf-maven-plugin to validate and fix the behaviour.
I believe KARAF-2791 already fixed this