How do I suppress maven assembly plugin skipping files that are already added? Or allow overwrite?

前端 未结 6 1029
粉色の甜心
粉色の甜心 2021-02-07 02:22

For weeks, I\'ve been wrestling with maven, getting it to deploy our project \"properly.\"

I\'m almost done but I have one stubborn little problem:

When I use th

6条回答
  •  梦如初夏
    2021-02-07 03:09

    It is probably better to use maven-resources-plugin with copy-resources goal to pull together the directories you need into one place. Create an execution for your basic directory structure and add subsequent executions for the customized parts. Setting the overwrite property of the goal to true will ensure that the custom files will overwrite the defaults.

    Then in your assembly descriptors use the fileset you've just made.

提交回复
热议问题