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

Can't unpack multiple classifiers from same artifact; "already unpacked"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 2.0-alpha-1
    • None
    • None

    Description

      A plugin configuration like this does not work:

      <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>dependency-maven-plugin</artifactId>
      <executions>
      <execution>
      <id>generate-resources-apphome</id>
      <phase>generate-resources</phase>
      <configuration>
      <artifactItems>
      <artifactItem>
      <groupId>com.example</groupId>
      <artifactId>MyProject</artifactId>
      <version>5.0-SNAPSHOT</version>
      <classifier>someFiles</classifier>
      <type>zip</type>
      <outputDirectory>target/dir1</outputDirectory>
      </artifactItem>
      <artifactItem>
      <groupId>com.example</groupId>
      <artifactId>MyProject</artifactId>
      <version>5.0-SNAPSHOT</version>
      <classifier>otherFiles</classifier>
      <type>zip</type>
      <outputDirectory>target/dir2</outputDirectory>
      </artifactItem>
      </artifactItems>
      </configuration>
      <goals>
      <goal>unpack</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      The otherFiles.zip file is never unpacked to dir2 and the conole output states:

      [INFO] MyProject-5.0-SNAPSHOT-otherFiles.zip already unpacked.

      When actually it was the someFiles.zip that was already unpacked.

      Attachments

        Activity

          People

            brianf Brian E Fox
            duality72 duality72
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: