Skip to content

[MDEP-800] Setting excludeTransitive in copy-dependencies might result in not copying direct dependencies #1306

Description

@jira-importer

Oliver Hecker opened MDEP-800 and commented

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.


Affects: 3.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions