Maven - how to include empty directories

后端 未结 5 1294
灰色年华
灰色年华 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 07:56

    We've usually got around this problem by including an empty placeholder file in any directories that we need to create but which have no useful content at build time.

    This also has the advantage that file formats (e.g. zip files) which don't allow the concept of empty directories will still create the right directory structure.

提交回复
热议问题