Skip to content

[MRESOLVER-9] DefaultDependencyCollector does not correctly handle dependency management #808

@jira-importer

Description

@jira-importer

Christian Schulte opened MRESOLVER-9 and commented

During dependency processing the DependencySelector is called to decide if a dependency is to be selected. The call to DependencySelector.selectDependency() is performed with the unmanaged dependency, but needs to be performed with the managed dependency. With the fix applied, the result no longer contains dependencies whose scope or optionality has been managed to not be part of the result (correct behaviour). Without the fix applied, the result contains dependencies with a managed scope or optionality not filtered out by the DependencySelector in use (incorrect behaviour).


Issue Links:

  • MNG-6135 Maven plugins and core extensions are not dependencies, they should be resolved the same way as projects.
    ("blocks")

  • MNG-5935 Optional true getting lost in managed dependencies when transitive
    ("blocks")

  • MNG-7003 Inconsistent dependency tree
    ("blocks")

  • MNG-5227 The 'optional' flag of a dependency should be manageable.
    ("blocks")

  • MRESOLVER-235 Managed dependencies are not honoured when resolving a dependency graph

  • MNG-6139 Addition of command line option 'legacy-dependency-management'.
    ("is required by")

  • MRESOLVER-12 Addition of unit tests for DependencySelector implementations
    ("is depended upon by")

Remote Links:

1 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:criticalCrashes, loss of data, severe memory leak

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions