You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Crim (JIRA)" <ji...@codehaus.org> on 2008/07/04 02:23:27 UTC

[jira] Created: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

dependencySet with unpack=true cannot be used to make file permissions executable
---------------------------------------------------------------------------------

                 Key: MASSEMBLY-337
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.2-beta-2
         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
            Reporter: John Crim
            Priority: Blocker
         Attachments: massembly-bug.tar.gz

The attached tar.gz contains 2 simple test projects which exhibit this bug:
# Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
# Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.

{code:xml}
<!-- Assembly descriptor for assembly-filemode-bug project -->
  <dependencySets>

    <dependencySet>
      <outputFileNameMapping></outputFileNameMapping>
      <outputDirectory>bin</outputDirectory>
      <unpack>true</unpack>
      <includes>
        <include>maven-bugs:scripts-assembly:zip:scripts</include>
      </includes>
      <fileMode>0755</fileMode>
    </dependencySet>

  </dependencySets>
{code}

The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.

I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.

At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.



-- 
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

        

[jira] Commented: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

Posted by "Paul Gribben (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257428#action_257428 ] 

Paul Gribben commented on MASSEMBLY-337:
----------------------------------------

Apologies - it is in the release note for 2.2. In my case I'm trying to unpack a jar file (not zip) and then apply permissions. Should this work ok in 2.2?

> dependencySet with unpack=true cannot be used to make file permissions executable
> ---------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-337
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
>            Reporter: John Crim
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.2
>
>         Attachments: massembly-bug.tar.gz
>
>
> The attached tar.gz contains 2 simple test projects which exhibit this bug:
> # Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
> # Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.
> {code:xml}
> <!-- Assembly descriptor for assembly-filemode-bug project -->
>   <dependencySets>
>     <dependencySet>
>       <outputFileNameMapping></outputFileNameMapping>
>       <outputDirectory>bin</outputDirectory>
>       <unpack>true</unpack>
>       <includes>
>         <include>maven-bugs:scripts-assembly:zip:scripts</include>
>       </includes>
>       <fileMode>0755</fileMode>
>     </dependencySet>
>   </dependencySets>
> {code}
> The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.
> I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.
> At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.

-- 
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

        

[jira] Commented: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

Posted by "Anders Blaagaard (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182926#action_182926 ] 

Anders Blaagaard commented on MASSEMBLY-337:
--------------------------------------------

I have the same problem, but managed to make a workaround by first unpacking the dependency using the unpack goal in the dependency plugin, and then including it in the assembly as a {{fileSet}} with correct {{fileMode}} settings. 

> dependencySet with unpack=true cannot be used to make file permissions executable
> ---------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-337
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
>            Reporter: John Crim
>            Priority: Blocker
>         Attachments: massembly-bug.tar.gz
>
>
> The attached tar.gz contains 2 simple test projects which exhibit this bug:
> # Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
> # Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.
> {code:xml}
> <!-- Assembly descriptor for assembly-filemode-bug project -->
>   <dependencySets>
>     <dependencySet>
>       <outputFileNameMapping></outputFileNameMapping>
>       <outputDirectory>bin</outputDirectory>
>       <unpack>true</unpack>
>       <includes>
>         <include>maven-bugs:scripts-assembly:zip:scripts</include>
>       </includes>
>       <fileMode>0755</fileMode>
>     </dependencySet>
>   </dependencySets>
> {code}
> The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.
> I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.
> At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.

-- 
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

        

[jira] Updated: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MASSEMBLY-337:
---------------------------------

    Fix Version/s: 2.2-beta-6
         Assignee: John Casey

> dependencySet with unpack=true cannot be used to make file permissions executable
> ---------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-337
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
>            Reporter: John Crim
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.2-beta-6
>
>         Attachments: massembly-bug.tar.gz
>
>
> The attached tar.gz contains 2 simple test projects which exhibit this bug:
> # Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
> # Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.
> {code:xml}
> <!-- Assembly descriptor for assembly-filemode-bug project -->
>   <dependencySets>
>     <dependencySet>
>       <outputFileNameMapping></outputFileNameMapping>
>       <outputDirectory>bin</outputDirectory>
>       <unpack>true</unpack>
>       <includes>
>         <include>maven-bugs:scripts-assembly:zip:scripts</include>
>       </includes>
>       <fileMode>0755</fileMode>
>     </dependencySet>
>   </dependencySets>
> {code}
> The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.
> I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.
> At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.

-- 
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

        

[jira] Commented: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

Posted by "Kallin Nagelberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146881#action_146881 ] 

Kallin Nagelberg commented on MASSEMBLY-337:
--------------------------------------------

I've encountered the same problem when trying to use <fileMode>0700</fileMode> . It appears to disregard that tag entirely when used within a dependencyset.


> dependencySet with unpack=true cannot be used to make file permissions executable
> ---------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-337
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
>            Reporter: John Crim
>            Priority: Blocker
>         Attachments: massembly-bug.tar.gz
>
>
> The attached tar.gz contains 2 simple test projects which exhibit this bug:
> # Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
> # Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.
> {code:xml}
> <!-- Assembly descriptor for assembly-filemode-bug project -->
>   <dependencySets>
>     <dependencySet>
>       <outputFileNameMapping></outputFileNameMapping>
>       <outputDirectory>bin</outputDirectory>
>       <unpack>true</unpack>
>       <includes>
>         <include>maven-bugs:scripts-assembly:zip:scripts</include>
>       </includes>
>       <fileMode>0755</fileMode>
>     </dependencySet>
>   </dependencySets>
> {code}
> The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.
> I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.
> At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.

-- 
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

        

[jira] Commented: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

Posted by "Paul Gribben (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257425#action_257425 ] 

Paul Gribben commented on MASSEMBLY-337:
----------------------------------------

Hi. This bug is marked as fixed in 2.2 in the summary above. (but is not on the fixed list for 2.2). I've tried it out in 2.2 and it doesn't appear to be fixed. Is the fix available?

> dependencySet with unpack=true cannot be used to make file permissions executable
> ---------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-337
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
>            Reporter: John Crim
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.2
>
>         Attachments: massembly-bug.tar.gz
>
>
> The attached tar.gz contains 2 simple test projects which exhibit this bug:
> # Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
> # Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.
> {code:xml}
> <!-- Assembly descriptor for assembly-filemode-bug project -->
>   <dependencySets>
>     <dependencySet>
>       <outputFileNameMapping></outputFileNameMapping>
>       <outputDirectory>bin</outputDirectory>
>       <unpack>true</unpack>
>       <includes>
>         <include>maven-bugs:scripts-assembly:zip:scripts</include>
>       </includes>
>       <fileMode>0755</fileMode>
>     </dependencySet>
>   </dependencySets>
> {code}
> The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.
> I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.
> At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.

-- 
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

        

[jira] Closed: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-337.
--------------------------------

    Resolution: Fixed

> dependencySet with unpack=true cannot be used to make file permissions executable
> ---------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-337
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
>            Reporter: John Crim
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.2-beta-6
>
>         Attachments: massembly-bug.tar.gz
>
>
> The attached tar.gz contains 2 simple test projects which exhibit this bug:
> # Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
> # Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.
> {code:xml}
> <!-- Assembly descriptor for assembly-filemode-bug project -->
>   <dependencySets>
>     <dependencySet>
>       <outputFileNameMapping></outputFileNameMapping>
>       <outputDirectory>bin</outputDirectory>
>       <unpack>true</unpack>
>       <includes>
>         <include>maven-bugs:scripts-assembly:zip:scripts</include>
>       </includes>
>       <fileMode>0755</fileMode>
>     </dependencySet>
>   </dependencySets>
> {code}
> The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.
> I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.
> At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.

-- 
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

        

[jira] Commented: (MASSEMBLY-337) dependencySet with unpack=true cannot be used to make file permissions executable

Posted by "Mark Bowman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=188784#action_188784 ] 

Mark Bowman commented on MASSEMBLY-337:
---------------------------------------

Anders,

This bug is a killer. 
Would you mind posting some details of your workaround. I understand the fileSet in the assembly but I'm not clear how to use the dependency plugin.

> dependencySet with unpack=true cannot be used to make file permissions executable
> ---------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-337
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-337
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: Maven 2.0.9, Java 1.6_04, tested on both Windows XP and CentOS 4.1
>            Reporter: John Crim
>            Priority: Blocker
>         Attachments: massembly-bug.tar.gz
>
>
> The attached tar.gz contains 2 simple test projects which exhibit this bug:
> # Project scripts-assembly generates {{scripts-assembly-1.0-SNAPSHOT-scripts.zip}}, which contains a single file, {{script.sh}}, with permissions {{-rwxr-xr-x}}
> # Project assembly-filemode-bug depends on project scripts-assembly.  It extracts the scripts.zip file into its {{/bin}} directory when creating its assembly.
> {code:xml}
> <!-- Assembly descriptor for assembly-filemode-bug project -->
>   <dependencySets>
>     <dependencySet>
>       <outputFileNameMapping></outputFileNameMapping>
>       <outputDirectory>bin</outputDirectory>
>       <unpack>true</unpack>
>       <includes>
>         <include>maven-bugs:scripts-assembly:zip:scripts</include>
>       </includes>
>       <fileMode>0755</fileMode>
>     </dependencySet>
>   </dependencySets>
> {code}
> The {{fileMode}} element does not have the desired effect.  I'm not able to find a workaround with 2.2-beta-2 that enables me to set the executable bit on the scripts. From looking at other bugs in MASSEMBLY, I did try configuring the scripts-assembly project to output a zip (also tried tar.gz) containing the files with the executable bit set.  This didn't change the outcome - the files in package #2 are still not executable.
> I consider this a highest priority bug, b/c I can find no way to get around this limitation and make script files from a dependency executable within an installable package.  If I change to assembly plugin version 2.2-beta-1 (which admittedly has a significant list of bugs I'd like to avoid), this works.  I've also tried using other tar.gz for the assembly output of both projects, but it didn't affect the outcome.
> At this point I think my best path forward is to use assembly plugin version 2.2-beta-1.

-- 
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