How do I include an empty directory in a maven assembly?

后端 未结 3 1678
天命终不由人
天命终不由人 2020-12-30 19:33

In what must be a common occurence, I need to include an empty directory in an assembly. In my case it is logs/.

I\'ve tried different variations in the assembly des

3条回答
  •  情歌与酒
    2020-12-30 20:16

    Courtesy, this SO answer and with some trial and error, the following one seems to work for me...

    
      src/main/assembly
      /logs
      
        *
      
    
    

    The key seems to be to ensure that tag specifies a valid/existing folder, which does not have any subfolders.

提交回复
热议问题