Skip to content

[MNG-8516] dependencyManagement in a single pom #10706

@jira-importer

Description

@jira-importer

Elliotte Rusty Harold opened MNG-8516 and commented

https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management describes putting a dependencyManagement section in a parent pom, but what about putting a
dependencyManagement section in the current pom.xml? Does this override dependency versions in transitive dependencies?

E.g. suppose my project depends on spring 2.5 which depends on Guava 25.0. If I dependency manage Guava to 33.0, is that now the version that is added to my classpath?

if yes, document this use.
If no, why not?


No further details from MNG-8516

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions