Skip to content

fileSets in maven-assembly-plugin not working when iso9660-maven-plugin is used as archiver #25

Description

@rbi

How to reproduce

  • Use fileSets with maven-assembly-plugin 3.1.1
  • use iso9660-maven-plugin 2.0.1 as archiver to let the assembly-plugin create ISOs.
  • See attached Demo project

What happened

  • Build fails with an exception "Caused by: com.github.stephenc.javaisotools.sabre.HandlerException: Joliet: Empty directory name encountered."
  • see attachment

What should happen

  • no exception

Analysis

  • When specifying outputDirectory in a fileSet the assembly plugin attaches a trailing / to the directory name. E.g. <outputDirectory>someDir</outputDirectory> gets someDir/
  • This line tries to extract the name of the child directory. E.g. it tries to convert someParent/someDir to someDir
  • When the child ends with a slash however the method transforms someDir/ to an empty String instead of someDir as it would be expected.

Attachements

exception.log
maven-project.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions