maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MASSEMBLY-449) Permissions on directories in a zipped archive incorrect
Date Mon, 14 Mar 2011 21:03:22 GMT

    [ http://jira.codehaus.org/browse/MASSEMBLY-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260084#action_260084
] 

Andreas Veithen commented on MASSEMBLY-449:
-------------------------------------------

A workaround for this issue is to add the following configuration to the plugin:

{code} 
<configuration>
    <archiverConfig>
        <fileMode>420</fileMode> <!-- 420(dec) = 644(oct) -->
        <directoryMode>493</directoryMode> <!-- 493(dec) = 755(oct) -->
        <defaultDirectoryMode>493</defaultDirectoryMode>
    </archiverConfig>
</configuration>
{code}

Tested with 2.2-beta-5.

> Permissions on directories in a zipped archive incorrect
> --------------------------------------------------------
>
>                 Key: MASSEMBLY-449
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-449
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-4
>            Reporter: James Kavanagh
>
> Using the following assembly plugin:
> {code:xml}
> <assembly>
>     <id>target-packaged</id>
>     <formats>
>         <format>zip</format>
>     </formats>
>     <includeBaseDirectory>false</includeBaseDirectory>
>     <moduleSets>
>         <moduleSet>
>             <includes>
>                 <include>*:core-env</include>
>             </includes>
>             <binaries>
>                 <attachmentClassifier>env</attachmentClassifier>
>                 <includeDependencies>false</includeDependencies>
>                 <unpack>true</unpack>
>             </binaries>
>         </moduleSet>
>         <moduleSet>
>             <includes>
>                 <include>*:data-bridge</include>
>             </includes>
>             <binaries>
>                 <attachmentClassifier>target</attachmentClassifier>
>                 <includeDependencies>false</includeDependencies>
>                 <unpack>true</unpack>
>             </binaries>
>         </moduleSet>
>         <moduleSet>
>             <includes>
>                 <include>*:web</include>
>             </includes>
>             <binaries>
>                 <attachmentClassifier>web</attachmentClassifier>
>                 <includeDependencies>false</includeDependencies>
>                 <unpack>true</unpack>
>             </binaries>
>         </moduleSet>
>     </moduleSets>
> </assembly>
> {code}
> When unzipping the result on a Linux host all the directory permissions have been set
to 777.
> If I revert the plugin version to 2.2-beta-3 the issue goes away.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message