Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-315

Improve error message in case of embedding invalid sub packages

    XMLWordPrintableJSON

Details

    Description

      Currently the error message being emitted for invalid ZIP files referenced as sub packages is pretty confusing. It is lacking the original ZIP file name.

      An example error message looks like this

      [INFO] --- filevault-package-maven-plugin:1.0.2-SNAPSHOT:generate-metadata (default-generate-metadata) @ completepackage ---
      [INFO] Embedding --- Sub Packages: groupId=,artifactId=,type=zip,classifier=,filter=true,excludeTransitive=false ---
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.061 s
      [INFO] Finished at: 2018-08-10T16:35:09+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.0.2-SNAPSHOT:generate-metadata (default-generate-metadata) on project completepackage: java.util.zip.ZipException: zip file is empty -> [Help 1]
      

      It is completely lacking the source file name of the sub package which was supposed to be embedded.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: