Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2-beta-1
-
Fix Version/s: 2.2-beta-4
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
I have some files with the execute permission set. When they are copied into a zip file by the assembly plugin their permissions are removed.
This forces me to do something ugly (and not efficient) like this:
<!-- Copy sh files so that we can set their permissions. This is required since the
Assembly plugin looses file permissions. -->
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
plugin where the artifact name will be used instead of / if outputFileNameMapping is
not specified -->
<outputFileNameMapping></outputFileNameMapping>
<includes>
<include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
</includes>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
<unpackOptions>
<includes>
<include>**/*.sh</include>
</includes>
</unpackOptions>
<fileMode>755</fileMode>
</dependencySet>
<!-- Copy all other files (excluding sh files). See above for details. -->
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
plugin where the artifact name will be used instead of / if outputFileNameMapping is
not specified -->
<outputFileNameMapping></outputFileNameMapping>
<includes>
<include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
</includes>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
<unpackOptions>
<excludes>
<exclude>**/*.sh</exclude>
</excludes>
</unpackOptions>
</dependencySet>
Issue Links
| This issue is related to: | ||||
| MASSEMBLY-75 | Unpacked TAR dependencies do not preserve file mode nor uid/gid |
|
|
|
| MASSEMBLY-379 | Follow-up: file permissions are removed when creating tar.gz assembly |
|
|
|
| This issue depends upon: | ||||
| PLXCOMP-94 | Archiver should have an option to preserve directory/file mode |
|
|
|
I can confirm this problem. It only seems to happen with zip files, permissions are preserved with tar.gz and tar.bz2.