Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1031

Incorrect handling of transitive dependency with overridden version in dependencyManagement

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 2017.1.1, 2017.2.0
    • Fix Version/s: 2017.3.2
    • Component/s: None
    • Labels:
      None

      Description

      Say you have dependency A which transitively brings in dependency B with version 1 and you override the version of B to 2 via dependencyManagement, then m2repo contains B version 1 and version 2.
      I would expect only version 2 to be included as this is what happens when you build a regular war-file (without swarm-plugin). This is also backed by mvn dependency:tree as this only shows version 2.

      Workaround:
      Add a explicit dependency to B (within dependencies, outside of dependencyManagement).
      Note: This workaround will run into SWARM-1009, B will be included twice.

      I will come up with a showcase project on github ASAP.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  heiko.braun Heiko Braun
                  Reporter:
                  famod Falko Modler
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: