I'm trying to create a distributable zip of my project that contains several configuration files and directories, as well as the executable jar of my project. In the Maven assembly plug-in, I've found how to make the executable jar with full dependencies. However, I haven't been able to figure out how to create the zip file around the jar after it has been made. Ideally, I'd like to move the jar to a directory which already has the correct files and sub-directories, then zip the whole thing at once. Is there any way to do this?
edit:
I now have the jar building, and a rudimentary zip as well. My assembly file looks like this:
1 <assembly>
2    <id>financials-import-server</id>
3    <formats>
4       <format>zip</format>
5    </formats>
6    <dependencySets>
7       <dependencySet>
8       </dependencySet>
9    </dependencySets>
10    <files>
11       <file>
12          <source>target/import-server-1.0.0-SNAPSHOT.jar</source>
13          <destName>service.jar</destName>
14          <outputDirectory>/</outputDirectory>
15       </file>
16    </files>
17 </assembly>
I feel comfortable including the other files I would need, such as config files or shell scripts. I have a few questions remaining. How would I create empty directories within the zip? Also, how do I change the name of the file that is produced?
Thanks for the help!