apache / apache/maven-dependency-plugin
[MDEP-975] Command-line use of copy-dependencies does excludeTransitive=true when pom based use has that as false by default
- Dominant language
- Java
- Stars
- 175
- Forks
- 196
- Avg merge
- 19h 30m
- Merged PRs (30d)
- 5
Description
**[Paul Hammant](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=paul)** opened **[MDEP-975](https://issues.apache.org/jira/browse/MDEP-975?redirect=false)** and commented
https://maven.apache.org/components/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeTransitive - suggests false is default.
Command line use ( I have a project that has okhttp as test dep):
```
mvn -q dependency:copy-dependencies -DincludeScope=test -DincludeArtifactIds=okhttp -DoutputDirectory=target/libs_for_test
```
This should have copied okio, kotlin-stdlib and okio-jvm, too, but did not.
I think the command line use of copy-dependencies should match the defaults of the pom/xml based use of the same
```
---
**Affects:** 3.8.1
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the dependency:copy-dependencies goal and reproduce the documented command using -DincludeScope=test, -DincludeArtifactIds=okhttp, and -DoutputDirectory. Compare command-line behavior with the POM/XML default for excludeTransitive. Done means the command copies okhttp and its expected transitive dependencies, including okio and kotlin-stdlib.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100