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

dependency tree should be the same when using verbose or not

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9
    • Component/s: tree
    • Labels:
      None

      Description

      When running dependency tree (version 2.8) using maven 3, the generated tree is consistent with what maven is using.

      If you enable -Dverbose, I have a maven 2 dependency tree:

      if ( verbose )
                  {
                      // verbose mode force Maven 2 dependency tree component use
                      dependencyTreeString =
                          serializeVerboseDependencyTree( dependencyTreeBuilder.buildDependencyTree( project,
                                                                                                     localRepository,
                                                                                                     artifactFilter ) );
                  }
                  else
                  {
                      // non-verbose mode use dependency graph component, which gives consistent results with Maven version
                      // running
                      rootNode = dependencyGraphBuilder.buildDependencyGraph( project, artifactFilter );
      
                      dependencyTreeString = serializeDependencyTree( rootNode );
                  }
      

      It's very misleading. Even the documentation doesn't mention it.

      Probably there's a good reason to not use Aether for the verbose mode, but I guess at least it should print a warning at the end of the process and explicitly say it in the documentation.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              hboutemy Herve Boutemy
              Reporter:
              cintiadr Cintia DR

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment