You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (Jira)" <ji...@apache.org> on 2019/08/22 19:00:00 UTC
[jira] [Updated] (MDEP-659) dependency:unpack / needs the option of
unpacking sub-directory AND ignoring parent folders
[ https://issues.apache.org/jira/browse/MDEP-659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Heinz Marbaise updated MDEP-659:
-------------------------------------
Issue Type: Improvement (was: Bug)
> 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: Improvement
> Components: unpack
> Affects Versions: 3.1.1
> Environment: Windows 10 / Eclipse Maven
> Reporter: Jasper Teng
> Priority: Major
>
> 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)