You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maarten Mulders (Jira)" <ji...@apache.org> on 2019/12/11 11:49:00 UTC

[jira] [Updated] (MDEP-666) dependency:tree does not work for multi-module project unless installed

     [ https://issues.apache.org/jira/browse/MDEP-666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Mulders updated MDEP-666:
---------------------------------
    Description: 
In a multi-module project, {{mvn dependency:tree}} does not work unless
 # the project has been installed to the local repository, or
 # the project has been deployed to a remote repository

In a project that was never installed or deployed, the Mojo will fail to print a dependency tree even when all dependencies are resolvable.

I have a [sample project on GitHub|https://github.com/mthmulders/maven-multimodule-dependency-tree] that illustrates this.

The _child-3_ module depends on _child-2_ (part of the reactor). The _child-2_ module depends on _child-1_ (also part of the reactor) and some dependencies that are deployed to Maven Central. The _child-1_ module only has dependencies to external artifacts which can be found in Maven Central.

  was:
In a multi-module project, `mvn dependency:tree` does not work unless
 # the project has been installed to the local repository, or
 # the project has been deployed to a remote repository

In a project that was never installed or deployed, the Mojo will fail to print a dependency tree even when all dependencies are resolvable.

I have a [sample project on GitHub|https://github.com/mthmulders/maven-multimodule-dependency-tree] that illustrates this.

The _child-3_ module depends on _child-2_ (part of the reactor). The _child-2_ module depends on _child-1_ (also part of the reactor) and some dependencies that are deployed to Maven Central. The _child-1_ module only has dependencies to external artifacts which can be found in Maven Central.


> dependency:tree does not work for multi-module project unless installed
> -----------------------------------------------------------------------
>
>                 Key: MDEP-666
>                 URL: https://issues.apache.org/jira/browse/MDEP-666
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: tree
>         Environment: Both macOS and Linux.
>            Reporter: Maarten Mulders
>            Priority: Minor
>
> In a multi-module project, {{mvn dependency:tree}} does not work unless
>  # the project has been installed to the local repository, or
>  # the project has been deployed to a remote repository
> In a project that was never installed or deployed, the Mojo will fail to print a dependency tree even when all dependencies are resolvable.
> I have a [sample project on GitHub|https://github.com/mthmulders/maven-multimodule-dependency-tree] that illustrates this.
> The _child-3_ module depends on _child-2_ (part of the reactor). The _child-2_ module depends on _child-1_ (also part of the reactor) and some dependencies that are deployed to Maven Central. The _child-1_ module only has dependencies to external artifacts which can be found in Maven Central.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)