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

excludeScope=test doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0-alpha-4
    • None
    • copy-dependencies
    • None

    Description

      mvn dependency:copy-dependencies -DexcludeScope=test doesn't seem to work correctly : I get a
      [INFO] [dependency:copy-dependencies]
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Can't exclude Test scope, this will exclude everything.
      [INFO] ------------------------------------------------------------------------

      If I use mvn dependency:copy-dependencies -DincludeScope=provided, I do get only provided scope artifact, that is the test scope is exluded indeed.

      ---> To my mind, excludeScope=test should work then.

      Attachments

        Issue Links

          Activity

            People

              brianf Brian E Fox
              djeanprost Dominique Jean-Prost
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: