<assembly> <!-- if appendAssemblyId is true in plugin setting, the final zip filename will be xxx-1.0.0.zip --> <!-- the id --> <id>${version}</id> <includeBaseDirectory>false</includeBaseDirectory> <formats> <format>zip</format> </formats>
<fileSets> <!-- pack jar into zip --> <fileSet> <directory>${project.build.directory}</directory> <outputDirectory>${project.build.finalName}</outputDirectory> <includes> <include>${project.build.finalName}.jar</include> </includes> </fileSet>
<!-- pack scripts into zip --> <fileSet> <directory>${project.basedir}/packet/</directory> <outputDirectory>${project.build.finalName}</outputDirectory> <includes> <include>**/*</include> </includes> </fileSet>
<!-- pack CHANGELOG.md into zip --> <fileSet> <directory>${project.basedir}/</directory> <outputDirectory>${project.build.finalName}</outputDirectory> <includes> <include>CHANGELOG.md</include> </includes> </fileSet>