Skip to content

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

@jira-importer

Description

@jira-importer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions