Maven Assembly Plugin
  1. Maven Assembly Plugin
  2. MASSEMBLY-557

Corrupted zip created by assembly: extracting the zip forgets certain folders (or throws permission denied errors) possibly because zip index is corrupted

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Take a look at the attached zip created by the assembly plugin.

      • If you open it, you can see navigate to the submap /droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/pdf/. In that map you find the file droolsjbpm-integration-docs.pdf which you can open with a PDF reader.
      • If instead you extract the entire archive to a directory, and navigate to the submap /droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/pdf/, you 'll find that that map is unreadable (chmod 000) and the pdf file is gone.
        The directories html_single and html suffer the same fate, but none of the other directories do.

      I used the default linux Ubuntu 10.10 archive manager (which according to about screen is called "File-roller 2.32.0").
      I used Maven 3.0.3, maven-assembly-plugin 2.2.1.
      Note that that attached zip is gutted to stay inside the maximum file upload size.

      Possible reproduce recipe:

      git clone git@github.com:droolsjbpm/droolsjbpm-integration.git
      cd droolsjbpm-integration
      git checkout 5.2.0.M2
      mvn clean install -DskipTests -Dfull
      cd droolsjbpm-integration/target
      ls
      
      checkdir error:  cannot create /home/gdesmet/tmp/releases/problem_with_the_release_zip/droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/html_single/images
                       Permission denied
                       unable to process droolsjbpm-integration-distribution-5.2.0.M2/reference_manual/html_single/images/.
      ...
      

        Activity

        Hide
        Kristian Rosenvold added a comment -

        Assembly 2.5 (currently known as 2.4.2-SNAPSHOT) has switched fully to commons-compress, meaning most of the code base that was used in prior versons is gone. This should fix this bug. Please do test this version, I will close this issue at release time (about 6 days from today) unless someone complains.

        Show
        Kristian Rosenvold added a comment - Assembly 2.5 (currently known as 2.4.2-SNAPSHOT) has switched fully to commons-compress, meaning most of the code base that was used in prior versons is gone. This should fix this bug. Please do test this version, I will close this issue at release time (about 6 days from today) unless someone complains.
        Hide
        Kristof Meixner added a comment -

        Works for me with the description in the above comment to reproduce it.

        Show
        Kristof Meixner added a comment - Works for me with the description in the above comment to reproduce it.
        Hide
        Kristian Rosenvold added a comment -

        Unfortunately there's a bunch of unpublished jars required to build this stuff. Does building with jdk6 and jdk7 produce different results when using 2.4.2-SNAPSHOT ?

        Show
        Kristian Rosenvold added a comment - Unfortunately there's a bunch of unpublished jars required to build this stuff. Does building with jdk6 and jdk7 produce different results when using 2.4.2-SNAPSHOT ?
        Hide
        Kristof Meixner added a comment -

        No it produces the same results. So everything neat with 2.4.2-SNAPSHOT (Java 6 & 7), everything messed up with 2.4.1 (Java 6 & 7).

        Show
        Kristof Meixner added a comment - No it produces the same results. So everything neat with 2.4.2-SNAPSHOT (Java 6 & 7), everything messed up with 2.4.1 (Java 6 & 7).
        Hide
        Kristian Rosenvold added a comment -

        Oh, I misunderstood, I thought it was still broken wiht 2.4.2-SNAPSHOT

        Show
        Kristian Rosenvold added a comment - Oh, I misunderstood, I thought it was still broken wiht 2.4.2-SNAPSHOT

          People

          • Assignee:
            Kristian Rosenvold
            Reporter:
            Geoffrey De Smet
          • Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: