maven-assembly-plugin
maven-assembly-plugin copied to clipboard
[MASSEMBLY-856] Ability to overwrite existing files
Kamal Mettananda opened MASSEMBLY-856 and commented
This is a request to add <overwrite/> element to <fileSet> in assembly file.
Currently, it is not possible to overwrite the already existing files inside the expected archive with new files.
e.g.: Expectation of below assembly file is to have the conf.properties file in dir2 after the zip file is generated.
<assembly>
<id>dist</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<!-- copy a directory named dir1 having a conf.properties files -->
<fileSet>
<directory>dir1</directory>
<outputDirectory>release</outputDirectory>
</fileSet>
<!-- copy another directory named dir2 having a conf.properties files -->
<fileSet>
<directory>dir2</directory>
<outputDirectory>release</outputDirectory>
<overwrite>true</overwrite>
</fileSet>
</fileSets>
</assembly>
Affects: 2.2-beta-5, 2.5.4, 3.0.0
1 votes, 4 watchers