Project artifacts cache does not retain the order of classpath entries.
Wrong Object type used in implementation. HashSet can not guarantee the order of elements.
In runtime ProjectArtifacts passed as LinkedHashSet already which is safe.
Possible fix is provided in comments section.
- relates to
MDEP-609 Dependency analyzer gets confused if the same package is defined in 2 different artifacts