Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-800

Setting excludeTransitive in copy-dependencies might result in not copying direct dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0
    • None
    • copy-dependencies
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ohecker Oliver Hecker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: