[
https://issues.apache.org/jira/browse/MDEP-749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17348683#comment-17348683
]
Hudson commented on MDEP-749:
-----------------------------
Build succeeded in Jenkins: Maven » Maven TLP » maven-dependency-plugin »
master #62
See
https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-dependency-plugin/job/master/62/
> copy-dependencies fails when using excludeScope=test
> ----------------------------------------------------
>
> Key: MDEP-749
> URL: https://issues.apache.org/jira/browse/MDEP-749
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: copy-dependencies
> Affects Versions: 3.1.2
> Reporter: Herve Boutemy
> Assignee: Herve Boutemy
> Priority: Major
> Fix For: 3.2.0
>
>
> {{mvn dependency:copy-dependencies}} works well even if a POM does not have
> any dependencies
> but {{mvn dependency:copy-dependencies -DexcludeScope=test}} fails
> {noformat}$ mvn dependency:copy-dependencies -DexcludeScope=test
> [INFO] Scanning for projects...
> [INFO]
> [INFO] --------------------< com.sonatype:dep-scope-test
> >---------------------
> [INFO] Building dep-scope-test 1.0-SNAPSHOT
> [INFO] --------------------------------[ jar
> ]---------------------------------
> [INFO]
> [INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default-cli) @
> dep-scope-test ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.765 s
> [INFO] Finished at: 2021-05-20T08:21:16+02:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies
> (default-cli) on project dep-scope-test: Can't exclude Test scope, this will
> exclude everything. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> {noformat}
> can be done easily on a project created with {{mvn archetype:generate
> -DgroupId=com.sonatype -DartifactId=dep-scope-test
> -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
> -DinteractiveMode=false}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)