Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rbi opened this issue May 20, 2019 · 0 comments

Comments

@rbi
Copy link

rbi commented May 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant