<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">
	<id>staging-extension</id>
	<formats>
		<format>zip</format>
	</formats>
	<includeBaseDirectory>false</includeBaseDirectory>
	<dependencySets>
		<!-- Staging wars -->
		<dependencySet>
			<useProjectArtifact>false</useProjectArtifact>
			<outputDirectory>/${project.build.finalName}/webapps</outputDirectory>
			<includes>
				<include>${project.groupId}:customer-space-*:war</include>
			</includes>
			<scope>provided</scope>
			<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
		</dependencySet>
		<!-- Libraries -->
		<dependencySet>
			<useProjectArtifact>false</useProjectArtifact>
			<outputDirectory>/${project.build.finalName}/lib</outputDirectory>
			<includes>
				<include>${project.groupId}:customer-space-*:jar</include>
				<include>org.juzu:juzu-plugins-jackson:jar</include>
			</includes>
			<scope>provided</scope>
			<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
		</dependencySet>
	</dependencySets>
</assembly>
