You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "S L (JIRA)" <ji...@apache.org> on 2015/10/27 14:57:27 UTC

[jira] [Updated] (MDEP-234) Make the list and tree mojos support listing transitive dependencies for war artifact types

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

S L updated MDEP-234:
---------------------
    Attachment: overlay-example-project.zip

I bumped into the same issue and it's currently still impossible to see transitive dependencies that comes into the main project with a overlay war.
I also feel that this is a bug and not a feature/wish due to the fact that this makes it impossible to find and locate any dependencies that comes into the project via a overlay war.
Attached is a sample-project which more or illustrate the issue outlined.
Inside this project we have an aggregator that will use the overlay-for-aggregator as overlay-war. The overlay-for-aggregator has a dependency to slfj4 that is not displayed when running mvn dependency:tree inside the aggregator-Project.

> Make the list and tree mojos support listing transitive dependencies for war artifact types
> -------------------------------------------------------------------------------------------
>
>                 Key: MDEP-234
>                 URL: https://issues.apache.org/jira/browse/MDEP-234
>             Project: Maven Dependency Plugin
>          Issue Type: Improvement
>          Components: tree
>    Affects Versions: 2.1
>            Reporter: Vincent Massol
>         Attachments: overlay-example-project.zip
>
>
> 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 runt "mvn dependency:tree" (or dependency:list) you get:
> {noformat}
> [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
> ...
> {noformat}
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)