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

filtering by classifier don't work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: copy, copy-dependencies
    • Labels:
      None
    • Environment:
      windows jdk1.6.0, maven 2.0.9

      Description

      Following plugin configuration ist used
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-dependency-plugin</artifactId>
      <executions>
      <execution>
      <id>copy</id>
      <phase>package</phase>
      <goals>
      <goal>copy-dependencies</goal>
      </goals>
      <configuration>
      <outputDirectory>${project.build.directory}/dependency/WEB-INF/lib</outputDirectory>
      <excludeClassifiers>web</excludeClassifiers>
      </configuration>
      </execution>

      <execution>
      <id>unpack</id>
      <phase>package</phase>
      <goals>
      <goal>unpack-dependencies</goal>
      </goals>

      <configuration>
      <includeClassifiers>web</includeClassifiers>
      </configuration>
      </execution>
      </executions>
      </plugin>

      but in both executions all dependencies are copied, regardless of there classifiers

        Attachments

          Activity

            People

            • Assignee:
              brianf Brian E Fox
              Reporter:
              robert.lieb Robert Lieb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: