<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"/>
...