apache / apache/maven-dependency-plugin

[MDEP-489] Regression: unpack-dependencies fails on Windows for tar.gz containing executable file

Open
#927 12 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Axel Fontaine](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=axel.fontaine)** opened **[MDEP-489](https://issues.apache.org/jira/browse/MDEP-489?redirect=false)** and commented

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

---

**Affects:** 2.10

**Attachments:**
- [pom.xml](https://issues.apache.org/jira/secure/attachment/13013851/pom.xml) (_2.82 kB_)
- [screenshot-1.png](https://issues.apache.org/jira/secure/attachment/13013852/screenshot-1.png) (_17.86 kB_)

1 votes, 6 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attached pom.xml and the unpack-dependencies goal, then reproduce the failure on Windows using the tar.gz dependency containing the executable file described in the report. The work is done when that dependency unpacks successfully on Windows without the privilege error and existing behavior for earlier plugin versions remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.