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

Make the list and tree mojos support listing transitive dependencies for war artifact types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1
    • None
    • tree
    • None

    Description

      For example, check out
      http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/web/

      (note: you'll need to specify the xwiki remote repo in your settings.xml as mentioned here: http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven )

      When you run "mvn dependency:tree" (or dependency:list) you get:

      [INFO] [dependency:tree {execution: default-cli}]
      [INFO] com.xpn.xwiki.products:xwiki-enterprise-web:war:2.1-SNAPSHOT
      [INFO] +- com.xpn.xwiki.platform:xwiki-web-standard:war:2.1-SNAPSHOT:compile
      [INFO] +- com.xpn.xwiki.platform.plugins:xwiki-plugin-watchlist:jar:1.20-SNAPSHOT:compile
      [INFO] +- com.xpn.xwiki.platform.plugins:xwiki-plugin-jodatime:jar:1.4-SNAPSHOT:compile
      ...
      

      As you can see the com.xpn.xwiki.platform:xwiki-web-standard:war dependency doesn't contain any transitive deps but it has several of them
      (see http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/standard/pom.xml )

      This is probably because the general artifact resolver stops at WAR packaging types. While this is probably fine when executing a maven project, it isn't when listing all project dependencies.

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: