You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2024/10/22 12:14:00 UTC

[jira] [Updated] (MDEP-852) Missing way to exclude unused only for test scope

     [ https://issues.apache.org/jira/browse/MDEP-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold updated MDEP-852:
---------------------------------------
    Issue Type: New Feature  (was: Bug)

> Missing way to exclude unused only for test scope
> -------------------------------------------------
>
>                 Key: MDEP-852
>                 URL: https://issues.apache.org/jira/browse/MDEP-852
>             Project: Maven Dependency Plugin
>          Issue Type: New Feature
>            Reporter: Bogdan Drutu
>            Priority: Major
>
> Maven has a missing feature in not supporting "runtime-test" scope, which is a good candidate for junit5 engine artifact `org.junit.jupiter:junit-jupiter-engine`.
> Because I don't want this to be scoped as "runtime" (for obvious reasons) I recommend users to set "test" scope for this target, so I added it as `
> ignoredUnusedDeclaredDependency`. This works, but it is too generic and allows bad usages like having the junit-jupiter-engine as runtime or even compile time. I would like to be able to say ignore unused dependency only for test scope, sorry if I miss some obvious way to do this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)