I am using maven assembly plugin. I am trying to build a tgz with maven and I need a file to be copied with a different name while packaging it.
File 'abc.txt' is being copied to directory named 'target'. Is there a way I can rename this file to xyz.txt in this syntax ?
+++++++++++++++++++++++++++++++++++++++++++++++++++
<fileSet>
<directory>source</directory>
<outputDirectory>/target</outputDirectory>
<includes>
<include>abc.txt</include>
</includes>
</fileSet>
+++++++++++++++++++++++++++++++++++++++++++++++++++
I'm not sure if you still need the answer for this, but I had a similar issue. In my case, I used to do the rename, not . I'm assuming you are using the assembly plugin. In your assembly.xml file, enter the following: