Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-852

Missing way to exclude unused only for test scope

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bogdandrutu Bogdan Drutu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: