Maven - how to include empty directories

后端 未结 5 1287
灰色年华
灰色年华 2020-11-30 07:25

By default during the build process maven is removing the empty directories.
Do you know if a parameter can be specified in the pom to instruct maven to include empty di

5条回答
  •  攒了一身酷
    2020-11-30 08:07

    I used the Assembly Plugin like khmarbaise suggested, but to get it to work I needed to use an Ant-style exclude to make sure that no files or directories crept into the archive:

    
        **/*
    
    

提交回复
热议问题