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

	<baseDirectory>moa-id-auth-${project.version}</baseDirectory>

	<fileSets>
		<fileSet>
			<directory>${basedir}/id/server/data/deploy</directory>
			<outputDirectory>/</outputDirectory>
			<excludes>
				<exclude>**/conf/Catalina/**</exclude>
			</excludes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/conf/moa-spss/certstore</directory>
			<outputDirectory>/conf/moa-id/certs/certstore</outputDirectory>
			<includes>
				<include>**/*</include>
			</includes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/spss/handbook/conf/moa-spss/certstore</directory>
			<outputDirectory>/conf/moa-spss/certstore</outputDirectory>
			<includes>
				<include>**/*</include>
			</includes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/id/server/doc</directory>
			<outputDirectory>/doc</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>${basedir}/id</directory>
			<outputDirectory>/</outputDirectory>
			<includes>
				<include>history.txt</include>
				<include>readme_${project.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-auth</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<outputDirectory>/</outputDirectory>
				<outputFileNameMapping>${module.artifactId}.${module.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.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-configuration</include>
			</includes>
			<binaries>
				<includeDependencies>false</includeDependencies>
				<outputDirectory>/</outputDirectory>
				<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>
		
		<moduleSet>
			<includes>
				<include>MOA.id:moa-id-oa</include>
			</includes>
			<sources>
			   <useDefaultExcludes>true</useDefaultExcludes>
			   <outputDirectory>../</outputDirectory>
			   <includeModuleDirectory>true</includeModuleDirectory>
			   <outputDirectoryMapping>/source/${module.artifactId}/src</outputDirectoryMapping>
			   <excludes>			           
         		<exclude>**/target/**</exclude>
         		<exclude>**/bin/**</exclude>
      			<exclude>**/.settings/**</exclude>
			      <exclude>.*</exclude>
			   </excludes>
			   <includes>
						<include>pom.xml</include>
					</includes>
			</sources>
			<binaries>
				<includeDependencies>false</includeDependencies>
				<outputDirectory>/</outputDirectory>
				<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
				<unpack>false</unpack>
			</binaries>
		</moduleSet>

	</moduleSets>

	<componentDescriptors>
		<componentDescriptor>component-pkcs11libs.xml</componentDescriptor>
	</componentDescriptors>

</assembly>