WolfgangHG commented on PR #160:
URL: https://github.com/apache/maven-archetype/pull/160#issuecomment-1836736679

   About empty directories: one could think that it could be feature in the new 
version that empty directories are also included in the jar file. But I tried 
to add empty folders in different places in the archetype source directory 
structure, and none of them was included in the archetype jar (using archetype 
plugin 3.2.1, which creates jar entries for all directories, but without my 
workaround). 
   Several StackOverflow answers suggest to achieve this by using filesets.
   
   Then I found this suggestion which does not work any more with my 
workaround: 
https://stackoverflow.com/questions/2786966/how-to-create-empty-folders-with-maven-archetype
   When adding the "maven-resources-plugin" with "includeEmptyDirs=true", then 
this will work with 3.2.1 as expected: all empty dirs are added. But my 
workaround breaks this code.
   
   The only solution I could think of: parse "archetype-metadata.xml" and 
exclude all directories that are defined as root dirs of filesets. But how to 
do this and how to handle the excludes? As I wrote above, I did not manage to 
specify exclusions on "DefaultFileSet".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to