<assembly>
	<id>id-proxy-${moa-id-proxy-version}</id>
	
	<formats>
		<format>dir</format>
		<format>zip</format>
		<!-- <format>tar.gz</format> -->
	</formats>

	<baseDirectory>moa-id-proxy-${moa-id-proxy-version}</baseDirectory>

	<fileSets>
		<fileSet>
			<directory>${basedir}/id/server/data/deploy</directory>
			<outputDirectory>/</outputDirectory>
			<excludes>
				<exclude>**/conf/moa-spss/**</exclude>
				<exclude>**/conf/moa-id/transforms/**</exclude>
			</excludes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/id/server/doc/proxy</directory>
			<outputDirectory>/doc</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/id</directory>
			<outputDirectory>/</outputDirectory>
			<includes>
				<include>history.txt</include>
				<include>readme_${moa-id-proxy-version}.txt</include>
			</includes>
		</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>
	</fileSets>

	<moduleSets>
		<moduleSet>
			<includes>
				<include>MOA.id.server:moa-id-proxy</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<outputDirectory>/</outputDirectory>
				<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
				<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>
						<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>
						<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
					</dependencySet>
				</dependencySets>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
<!-- 		<moduleSet>
			<includes>
				<include>MOA:moa-id-oa</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<outputDirectory>/</outputDirectory>
				<outputFileNameMapping>oa.${extension}</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet> -->
		<moduleSet>
			<includes>
				<include>MOA.id.server:moa-id-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.id:moa-id-templates</include>
			</includes>
			<binaries>
				<includeDependencies>false</includeDependencies>
				<outputFileNameMapping>moaid-templates.war</outputFileNameMapping>
				<outputDirectory>/templates</outputDirectory>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>-->
	</moduleSets>
	
	<componentDescriptors>
		<componentDescriptor>component-pkcs11libs.xml</componentDescriptor>
	</componentDescriptors>

</assembly>