Jasper Teng created MDEP-659: -------------------------------- Summary: dependency:unpack / needs the option of unpacking sub-directory AND ignoring parent folders Key: MDEP-659 URL: https://issues.apache.org/jira/browse/MDEP-659 Project: Maven Dependency Plugin Issue Type: Bug Components: unpack Affects Versions: 3.1.1 Environment: Windows 10 / Eclipse Maven Reporter: Jasper Teng
The current goal is able to unpack specific sub-directory of a zip type artifact by using the "includes" parameter. However, the tree structure of the sub-directory is maintained as well. For example: myartifact-version.zip {noformat} myartifact-version '-folder1 '-... '-folder2 '-...{noformat} pom.xml {noformat} ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-igate-distribution</id> <phase>generate-resources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>com.example</groupId> <artifactId>myartifact</artifactId> <version>${myartifact.version}</version> <type>zip</type> <overWrite>true</overWrite> <outputDirectory>${project.build.directory}/myartifact</outputDirectory> <includes>myartifact-*/**</includes> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> ...{noformat} Result {noformat} myproject '-target '-myartifact '-myartifact-version '-folder1 '-... '-folder2 '-...{noformat} However, I want to be able to change the pom.xml, to achieve the following result: {noformat} myproject '-target '-myartifact '-folder1 '-... '-folder2 '-...{noformat} -- This message was sent by Atlassian Jira (v8.3.2#803003)