apache / apache/maven-dependency-plugin

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

Open
#1,169 1 comment 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Vincent Massol](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=vmassol)** opened **[MDEP-234](https://issues.apache.org/jira/browse/MDEP-234?redirect=false)** and commented

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

---

**Affects:** 2.1

**Attachments:**
- [overlay-example-project.zip](https://issues.apache.org/jira/secure/attachment/12768991/overlay-example-project.zip) (_3.51 kB_)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported behavior with the dependency:tree and dependency:list goals against the XWiki web example, then inspect the referenced platform/web standard pom.xml and the attached overlay-example-project.zip. Done means both listing goals include the transitive dependencies of WAR artifacts rather than stopping at the WAR dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.