Renaming resources in Maven

后端 未结 5 1503
谎友^
谎友^ 2020-12-02 19:43

I am trying to find a way to copy a resource file to a new name in the target directory in a Maven build. Pretty much everything I have found while searching suggests workar

5条回答
  •  隐瞒了意图╮
    2020-12-02 20:42

    I see 2 options to solve your problem:

    • Use the Maven-Ant-Plugin, and define an Ant rename task that will rename your file only at the packaging phase, in the build directory.
    • Use this dedicated Maven plugin (I didn't test it): http://code.google.com/p/maven-file-rename-plugin/

提交回复
热议问题