Oliver Hecker created MDEP-800:
----------------------------------

             Summary: Setting excludeTransitive in copy-dependencies might 
result in not copying direct dependencies
                 Key: MDEP-800
                 URL: https://issues.apache.org/jira/browse/MDEP-800
             Project: Maven Dependency Plugin
          Issue Type: Bug
          Components: copy-dependencies
    Affects Versions: 3.3.0
            Reporter: Oliver Hecker


Under certain circumstances setting {{excludeTransitive}} to {{true}} in 
copy-dependencies goal might result in even direct dependencies to by excluded 
from copying.

The issue seems to be related to the fact that - depending on the setup of the 
maven project and history of builds -  snapshot dependencies might internally 
be represented by artifacts with version info containing timestamps. When 
checking whether a dependency is a direct dependency by using 
ProjectTransitivityFilter this might result in missing to correctly recognize 
such a dependency as a direct dependency and thus excluding it from copying.

[https://github.com/ohecker/dependency-plugin-issue] gives a setup and 
description to reproduce the issue.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to