Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-alpha-4
-
Fix Version/s: None
-
Component/s: copy, copy-dependencies, unpack, unpack-dependencies
-
Labels:None
-
Number of attachments :
Description
I have to add the following ugly config in my pom.xml to overcome this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- Dependency plugin discards file permissions so we need to set them back manually -->
<chmod file="${project.build.directory}/dependency/bin/windres" perm="ugo+rx"/>
<chmod file="${project.build.directory}/dependency/bin/ld" perm="ugo+rx"/>
...
Brian,
You can use the Apache Commons Compress library to add support for file permissions.