You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@apache.org> on 2015/05/28 19:59:17 UTC

[jira] [Commented] (MASSEMBLY-769) ZIP fileMode permissions not properly set with dependencySet and unpackOptions

    [ https://issues.apache.org/jira/browse/MASSEMBLY-769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14563356#comment-14563356 ] 

Kristian Rosenvold commented on MASSEMBLY-769:
----------------------------------------------

Fixed in plexus-archiver in fa9760eb62b7ed6e6c173a2626ff1b97792aba42

> ZIP fileMode permissions not properly set with dependencySet and unpackOptions
> ------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-769
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-769
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5.3, 2.5.4
>            Reporter: Dawid Weiss
>            Priority: Minor
>         Attachments: example.zip
>
>
> This issue first appeared in 2.5.3 and applies to an assembly with filtered dependencies and fileMode set, as in here:
> {code}
>     <dependencySet>
>       <outputDirectory>/</outputDirectory>
>       <includes>
>         <include>test:child1</include>
>       </includes>
>       <useTransitiveDependencies>true</useTransitiveDependencies>
>       <useTransitiveFiltering>true</useTransitiveFiltering>
>       <useProjectArtifact>false</useProjectArtifact>
>       <unpack>true</unpack>
>       <unpackOptions>
>         <includes>
>             <include>l4g</include>
>             <include>l4g.cmd</include>
>         </includes>
>       </unpackOptions>
>       <fileMode>0755</fileMode>
>     </dependencySet>
> {code}
> The output ZIP had proper file mode flags in 2.5.2, but from 2.5.3 on it's incorrect.
> Steps to reproduce:
> {code}
> unzip example.zip
> cd example
> mvn clean package
> zipinfo child2/target/*.zip
> {code}
> Output (slightly trimmed) for 2.5.3 and 2.5.4:
> {code}
> Archive:  c:\_tmp\example\example\child2\target\foo-1.0-SNAPSHOT-private.zip
> Zip file size: 565 bytes, number of entries: 4
> drwxr-xr-x  2.0 unx        0 b- stor 15-May-18 13:45 foo-1.0-SNAPSHOT/
> -rw-r--r--  2.0 unx        3 bl defN 15-May-18 13:45 foo-1.0-SNAPSHOT/l4g
> -rw-r--r--  2.0 unx        3 bl defN 15-May-18 13:45 foo-1.0-SNAPSHOT/l4g.cmd
> {code}
> output for 2.5.2 (note the 'x' flag for ``l4g`` files):
> {code}
> Archive:  c:\_tmp\example\example\child2\target\foo-1.0-SNAPSHOT-private.zip
> Zip file size: 565 bytes, number of entries: 4
> drwxr-xr-x  2.0 unx        0 b- stor 15-May-18 13:47 foo-1.0-SNAPSHOT/
> -rwxr-xr-x  2.0 unx        3 bl defN 15-May-18 13:47 foo-1.0-SNAPSHOT/l4g
> -rwxr-xr-x  2.0 unx        3 bl defN 15-May-18 13:47 foo-1.0-SNAPSHOT/l4g.cmd
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)