[MASSEMBLY-958] transitive dependencies not considered as expected in dependencySet
Carsten Rohde opened MASSEMBLY-958 and commented
When using a dependencySet with useTransitiveDependencies set to true, transitive dependencies seem to be determined based on the dependency-tree of the project in which the assembly-plugin is executed and not based on the dependency-set itself.
This means: if a transitive dependency of a dependencySet is also present outside of the dependency set, it may be evicted from the dependency set (depending on its depth in the dependecy tree of the project on which the plugin is executed).
This results in a rather unexpected behavior as the contents of the archive varies depending on the dependencies that are not part of the assembly.
I realize this might be difficult to change since you will probably have to make a resolution request for some sort of virtual project made up by the dependcies matching the dependecy set. At least this behavior should be pointed out in the documentation imho.
Example Project attached.
Affects: 3.3.0
Attachments:
- dependency-set-bug-aggregator.zip (10.24 kB)