Details
Description
When karaf-assembly packaging is used with such a configuration that multiple prerequisities gets pulled, the ordering will be mixed up.
Problem is that profile/src/main/java/org/apache/karaf/profile/assembly/Builder.java sorts the parts incorrectly using TreeSet in reformatClauses().
For example, if first this was generated from plugin configuraion (aries-blueprint, deployer, wrap), camel-core, camel-blueprint, it will be after reformatClauses (aries-blueprint, camel-core, camel-blueprint, deployer, wrap)
Note: the example is not complete as wrap and blueprint dependencies will only be pulled if such bundles are used too.
Relevant issues where this was first implemented are KARAF-2988 and KARAF-3574.