Carsten Rohde created MASSEMBLY-958:
---------------------------------------
Summary: transitive dependencies not considered as expected in
dependencySet
Key: MASSEMBLY-958
URL: https://issues.apache.org/jira/browse/MASSEMBLY-958
Project: Maven Assembly Plugin
Issue Type: Bug
Components: dependencySet
Affects Versions: 3.3.0
Reporter: Carsten Rohde
Attachments: dependency-set-bug-aggregator.zip
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.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)