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

filtering by classifier don't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • copy, copy-dependencies
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: