maven-dependency-plugin icon indicating copy to clipboard operation
maven-dependency-plugin copied to clipboard

[MDEP-975] Command-line use of copy-dependencies does excludeTransitive=true when pom based use has that as false by default

Open jira-importer opened this issue 10 months ago • 0 comments

Paul Hammant opened MDEP-975 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

jira-importer avatar Feb 08 '25 09:02 jira-importer