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

includeScope also includes provided scope

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.4
    • None
    • copy-dependencies
    • None
    • Windows 7, Java 64 Bit 1.7.0_06

    Description

      The includeScope property does not include only compile dependencies but also provided dependencies. This can be verified by the attached example.

      <configuration>
      <!--dependency plugin fails here and also includes the scope provided -->
      <includeScope>compile</includeScope>
      </configuration>

      This bloats the directory with tons of files in my case.

      Also specifying an excludeScope does not work.

      Workaround: specify <useSubDirectoryPerScope>true</useSubDirectoryPerScope> and use only the result form the corresponding directory.

      Attachments

        Activity

          People

            Unassigned Unassigned
            koh Karsten Ohme
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: