maven-download-plugin: Error when unzipping archives with symlinks on Windows: "A required privilege is not held by the client"
Full error:
[ERROR] Failed to execute goal com.googlecode.maven-download-plugin:download-maven-plugin:1.6.0:wget (download-jar2app) on project xpman-fx-dist: IO Error: Error while expanding xxxxx\target\jar2app\master.zip: xxxxx\target\jar2app\jar2app-master\jar2app: A required privilege is not held by the client. -> [Help 1]
The ZIP can be unzipped without error by 7zip or even Windows builtin unzipper.
Plugin configuration:
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<!-- download and unpack jar2app -->
<execution>
<id>download-jar2app</id>
<phase>prepare-package</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/Jorl17/jar2app/archive/master.zip</url>
<outputDirectory>${project.build.directory}/jar2app</outputDirectory>
<unpack>true</unpack>
</configuration>
</execution>
</executions>
</plugin>
Maven config:
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Users\Olivier\scoop\apps\maven\current\bin\..
Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_251\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 19 (7 by maintainers)
@longtimeago The plexus change was supposed to give it the ability to unpack symlinks as files. This would allow the download plugin to offer that approach as an option, for those use cases where such a fallback is acceptable.
@kriegaex The permission problem is not in the plugin, but the plugin does a poor job at informing the user what’s going on, and nothing at all to help him deal with the situation. The decision to close an issue should not just consider the root problem, but also what mitigations are possible.