maven-assembly-plugin icon indicating copy to clipboard operation
maven-assembly-plugin copied to clipboard

[MASSEMBLY-880] Maven assembly per-extension file permissions

Open jira-importer opened this issue 7 years ago • 0 comments

Marco Brandizi opened MASSEMBLY-880 and commented

I often have to write the following when using the Maven Assembly plug-in, in order to have file permissions correctly set for executable and non-executable files:

<fileSet> <directory>src/main/assembly/resources</directory> <outputDirectory></outputDirectory> <excludes> <!-- Defined below, with x permissions, non-executables only here --> <exclude>/*.sh</exclude> </excludes>
<fileMode>0644</fileMode> <directoryMode>0755</directoryMode> </fileSet> <fileSet> <directory>src/main/assembly/resources</directory> <outputDirectory></outputDirectory> <includes> <include>
/*.sh</include> </includes>
<fileMode>0755</fileMode> <directoryMode>0755</directoryMode>
</fileSet> This is redundant and cumbersome, I wonder if there is a simpler way to do the same, e.g., by specifying maps of file pattern => fileMode. It doesn't seem that anything like that is available, so I'm filing this as a new feature proposal.


No further details from MASSEMBLY-880

jira-importer avatar Mar 20 '18 14:03 jira-importer