<assembly
	xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">

	<!-- This assembly bundles Jars and scripts into a zip for installation. -->
	<id>synapse-cli-assembly</id>
	<formats>
		<format>zip</format>
	</formats>
	<includeBaseDirectory>false</includeBaseDirectory>
	<dependencySets>
		<dependencySet>
			<outputDirectory>/lib</outputDirectory>
            <useProjectArtifact/>
		</dependencySet>
	</dependencySets>
	<fileSets>
		<fileSet>
			<outputDirectory>/bin</outputDirectory>
			<directory>${project.basedir}/src/main/scripts</directory>
		</fileSet>
	</fileSets>
</assembly>

<assembly
	xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">

	<!-- This assembly bundles Jars and scripts into a zip for installation. -->
	<id>synapse-cli-assembly</id>
	<formats>
		<format>zip</format>
	</formats>
	<includeBaseDirectory>false</includeBaseDirectory>
	<dependencySets>
		<dependencySet>
			<outputDirectory>synapse/lib</outputDirectory>
            <useProjectArtifact/>
		</dependencySet>
	</dependencySets>
	<fileSets>
		<fileSet>
			<outputDirectory>synapse/bin</outputDirectory>
			<directory>${project.basedir}/src/main/scripts</directory>
		</fileSet>
	</fileSets>
</assembly>

Add a directory to the zip so that lib and bin are not unpacked in cwd
Add a directory to the zip so that lib and bin are not unpacked in cwd

