[ 
https://issues.apache.org/jira/browse/MDEP-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17208699#comment-17208699
 ] 

Christian Schudt commented on MDEP-489:
---------------------------------------

I can reproduce the issue as well. Reproducible with a tar.gz file which 
contains executable files, like a Linux JRE.

I've deployed the [Liberica JRE from 
Bellsoft|https://download.bell-sw.com/java/11.0.8+10/bellsoft-jre11.0.8+10-linux-amd64-full.tar.gz]
 with {{mvn deploy:deploy-file}} and then used the following snippet to unpack 
it.
Since version 2.10 I get the same error as above.

{code:xml}
                    <execution>
                        <id>unpack-linux-jre</id>
                        <phase>process-sources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.bell-sw</groupId>
                                    <artifactId>bellsoft-jre</artifactId>
                                    <version>11.0.8+10</version>
                                    <classifier>linux-amd64-full</classifier>
                                    <type>tar.gz</type>
                                </artifactItem>
                            </artifactItems>
                            
<outputDirectory>${project.build.directory}/linux</outputDirectory>
                        </configuration>
                    </execution>
{code}
 

> Regression: unpack-dependencies fails on Windows for tar.gz containing 
> executable file
> --------------------------------------------------------------------------------------
>
>                 Key: MDEP-489
>                 URL: https://issues.apache.org/jira/browse/MDEP-489
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.10
>            Reporter: Axel Fontaine
>            Priority: Major
>              Labels: close-pending
>
> unpack-dependencies fails on Windows for a tar.gz dependency containing an 
> executable file with the following message:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack-dependencies 
> (unpa
> ck-jres) on project boxfuse-commandline: Error unpacking file: 
> C:\Users\Axel\.m2\repository\com\oracle\server-
> jre\8.45\server-jre-8.45-linux-x64.tar.gz to: 
> C:\Workspaces\boxfuse-client\boxfuse-commandline\target\dependen
> cy\server-jre-linux-x64-tar.gz
> [ERROR] org.codehaus.plexus.archiver.ArchiverException: Error while expanding 
> C:\Users\Axel\.m2\repository\com
> \oracle\server-jre\8.45\server-jre-8.45-linux-x64.tar.gz: 
> C:\Workspaces\boxfuse-client\boxfuse-commandline\tar
> get\dependency\server-jre-linux-x64-tar.gz\jdk1.8.0_45\jre\lib\amd64\server\libjsig.so:
>  A required privilege i
> s not held by the client.
> This was working fine in all previous versions including 2.8 and 2.9



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to