You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/01/13 15:09:00 UTC
[jira] [Closed] (MDEP-586) Unpacking different resources into
different location from the same artifact doesn't work
[ https://issues.apache.org/jira/browse/MDEP-586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MDEP-586.
-------------------------------
Resolution: Cannot Reproduce
Assignee: Robert Scholte
With [9bcd5f20a6a4d951ac920f24fbe5e22ab07f1e7b|https://gitbox.apache.org/repos/asf?p=maven-dependency-plugin.git;a=commit;h=9bcd5f20a6a4d951ac920f24fbe5e22ab07f1e7b] an integration test is added, which shows that it does work.
Thanks for the patch!
> Unpacking different resources into different location from the same artifact doesn't work
> -----------------------------------------------------------------------------------------
>
> Key: MDEP-586
> URL: https://issues.apache.org/jira/browse/MDEP-586
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack-dependencies
> Affects Versions: 3.0.2
> Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
> Maven home: C:\Program Files (x86)\apache-maven-3.3.9\bin\..
> Java version: 1.8.0_111, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_111\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> Reporter: Tomas Tulka
> Assignee: Robert Scholte
> Priority: Major
> Labels: up-for-grabs
> Attachments: pom.xml
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> I have one artifact, in the simplest case only with two resources inside:
> ResourceArtifact-1.0.jar
> /resource1.dat
> /resource2.dat
> I want to unpack one resource into one location and the second in a different location, all this with one pom.xml:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>3.0.2</version>
> <executions>
> <execution>
> <id>unpack-resource1</id>
> <goals>
> <goal>unpack-dependencies</goal>
> </goals>
> <configuration>
> <includeArtifactIds>ResourceArtifact</includeArtifactIds>
> <includes>resource1.dat</includes>
> <outputDirectory>resources1</outputDirectory>
> </configuration>
> </execution>
> <execution>
> <id>unpack-resource2</id>
> <goals>
> <goal>unpack-dependencies</goal>
> </goals>
> <configuration>
> <includeArtifactIds>ResourceArtifact</includeArtifactIds>
> <includes>resource2.dat</includes>
> <outputDirectory>resources2</outputDirectory>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> When I +*don't*+ use (which makes not so much sense, because in fact there's nothing to overwrite):
> {code:xml}
> <overWriteReleases>true</overWriteReleases>
> <overWriteSnapshots>true</overWriteSnapshots>
> {code}
> Then I get an info (even not a warning):
> {noformat}
> [INFO] --- maven-dependency-plugin:3.0.2:unpack-dependencies (unpack-resource2) @ maven-unpack-same-artifact ---
> [INFO] test:ResourceArtifact:jar:1.0 already exists in destination.
> {noformat}
> And the second resource is not unpacked.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)