<assembly>
	<id>spss-${project.version}-lib</id>
	
	<formats>
		<format>dir</format>
		<format>zip</format>
		<format>tar.gz</format>
	</formats>

	<baseDirectory>moa-spss-lib-${project.version}</baseDirectory>

	<moduleSets>
		<moduleSet>
			<includes>
				<include>MOA.spss.server:moa-spss-lib</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<dependencySets>
					<dependencySet>
						<includes>
							<include>xalan-bin-dist:xalan</include>
							<include>xerces:xercesImpl</include>
							<include>xalan-bin-dist:xml-apis</include>
							<include>xalan-bin-dist:serializer</include>
						</includes>
						<outputDirectory>/endorsed</outputDirectory>
						<!-- strip version off the artifact file names -->
						<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
					<dependencySet>
						<includes>
							<include>iaik.prod:iaik_ecc</include>
							<include>iaik.prod:iaik_jce_full</include>
							<include>iaik.prod:iaik_Pkcs11Provider</include>
							<include>iaik.prod:iaik_Pkcs11Wrapper:jar</include>
						</includes>
						<outputDirectory>/ext</outputDirectory>
						<!-- strip version off the artifact file names -->
						<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
					<dependencySet>
						<includes>
							<include>MOA:moa-common</include>
						</includes>
						<outputDirectory>/</outputDirectory>
						<!-- strip version off the artifact file names -->
						<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
					<dependencySet>
						<excludes>
							<exclude>MOA:moa-common</exclude>
							<exclude>xalan-bin-dist:xalan</exclude>
							<exclude>xerces:xercesImpl</exclude>
							<exclude>xalan-bin-dist:xml-apis</exclude>
							<exclude>xalan-bin-dist:serializer</exclude>
							<exclude>iaik.prod:iaik_ecc</exclude>
							<exclude>iaik.prod:iaik_jce_full</exclude>
							<exclude>iaik.prod:iaik_Pkcs11Provider</exclude>
							<exclude>iaik.prod:iaik_Pkcs11Wrapper</exclude>
						</excludes>
						<outputDirectory>/lib</outputDirectory>
					</dependencySet>
				</dependencySets>
				<outputFileNameMapping>moa-spss.${extension}</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
		<moduleSet>
			<includes>
				<include>MOA.spss.server:moa-spss-lib</include>
			</includes>
			<binaries>
				<attachmentClassifier>javadoc</attachmentClassifier>
				<includeDependencies>false</includeDependencies>
				<outputFileNameMapping>api-doc</outputFileNameMapping>
				<outputDirectory>/doc</outputDirectory>
				<unpack>true</unpack>
			</binaries>
		</moduleSet>
		<moduleSet>
			<includes>
				<include>MOA.spss.server:moa-spss-tools</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<dependencySets>
					<dependencySet>
						<includes>
							<include>iaik.prod:iaik_ecc</include>
							<include>iaik.prod:iaik_jce_full</include>
							<include>iaik.prod:iaik_moa</include>
							<include>log4j:log4j</include>
							<include>xalan-bin-dist:xalan</include>
						</includes>
						<outputDirectory>/tools</outputDirectory>
						<!-- strip version off the artifact file names -->
						<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
				</dependencySets>
				<outputDirectory>/tools</outputDirectory>
				<outputFileNameMapping>tools.${extension}</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
	</moduleSets>
	
	<componentDescriptors>
		<componentDescriptor>component-pkcs11libs.xml</componentDescriptor>
	</componentDescriptors>

	<files>
		<file>
			<source>${basedir}/spss/handbook/handbook.html</source>
			<outputDirectory>/doc</outputDirectory>
		</file>
	</files>

	<fileSets>
		<fileSet>
			<directory>${basedir}/spss/server</directory>
			<outputDirectory>/</outputDirectory>
			<includes>
				<include>*.txt</include>
			</includes>
			<excludes>
				<exclude>readme.src.txt</exclude>
			</excludes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/conf</directory>
			<outputDirectory>/conf</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/handbook</directory>
			<outputDirectory>/doc/handbook</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/clients</directory>
			<outputDirectory>/doc/clients</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}</directory>
			<outputDirectory>/</outputDirectory>
			<includes>
				<include>LICENSE-2.0.txt</include>
				<include>NOTICE.txt</include>
				<include>IAIK-LICENSE.txt</include>
				<include>EUPL v.1.1 - Licence.pdf</include>
				<include>SIC_LICENSE.txt</include>	
			</includes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/server/tools/src/main/scripts</directory>
			<outputDirectory>/tools</outputDirectory>
		</fileSet>
	</fileSets>
	
</assembly>