<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<parent>
		<groupId>MOA.id</groupId>
		<artifactId>moa-id</artifactId>
		<version>2.x</version>
	</parent>
	
	<modelVersion>4.0.0</modelVersion>
	<groupId>MOA.id.server</groupId>
	<artifactId>moa-id-auth</artifactId>
	<version>${moa-id-version}</version>
	<packaging>war</packaging>
	<name>MOA ID-Auth WebService</name>
	
	<properties>
		<repositoryPath>${basedir}/../../../repository</repositoryPath>
	</properties>
	
	<repositories>
		<repository>
			<id>shibboleth.internet2.edu</id>
			<name>Internet2</name>
			<url>https://build.shibboleth.net/nexus/content/groups/public/</url>
		</repository>
	</repositories>
	
	<build>
		<!--sourceDirectory>${basedir}/../idserverlib/src/main/java</sourceDirectory-->
		<!--testSourceDirectory>${basedir}/../idserverlib/src/test/java</testSourceDirectory-->
		<plugins>
		
			<plugin>
      	<groupId>org.codehaus.mojo</groupId>
      	<artifactId>versions-maven-plugin</artifactId>
      	<version>2.1</version>
    	</plugin>
		
		
<!-- 		        	<plugin>
            		<groupId>org.codehaus.mojo</groupId>
            		<artifactId>properties-maven-plugin</artifactId>
            		<version>1.0-alpha-2</version>
            		<executions>
                		<execution>
                    		<phase>initialize</phase>
                    		<goals>
                        		<goal>read-project-properties</goal>
                    		</goals>
                    		<configuration>
    	                   		<files>
		                            <file>${basedir}/../../../moa-id.properties</file>
      		                  </files>
          		          </configuration>
              		  </execution>
            		</executions>
        		</plugin> -->
				<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.1.1</version>
				<!-- <version>2.0.2</version>-->
				<configuration>
					<archive>
						<manifest>
							<addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
						</manifest>
						<addMavenDescriptor>false</addMavenDescriptor>
					</archive>

					<!-- extract moa-id classes for debugging -->
					<!--warSourceExcludes>WEB-INF/lib/moa-id-lib*.jar</warSourceExcludes-->
					<webResources>
						<resource>
							<directory>${basedir}/src/main/wsdl</directory>
							<targetPath>WEB-INF/classes/resources/wsdl</targetPath>
						</resource>
					<!--
						<resource>
							<directory>${basedir}/../idserverlib/target/classes</directory>
							<targetPath>WEB-INF/classes</targetPath>
						</resource>
-->
					</webResources>
				</configuration>
			</plugin>
		</plugins>
	</build>
	
	<dependencies>


        <!-- we need Axis 1.1 here, 1.0 is included in SPSS -->
		<dependency>
			<groupId>axis</groupId>
			<artifactId>axis</artifactId>
		</dependency>
		<dependency>
    		<groupId>org.tuckey</groupId>
    		<artifactId>urlrewritefilter</artifactId>
    		<version>4.0.3</version>
		</dependency>
		<dependency>
			<groupId>MOA.spss.server</groupId>
			<artifactId>moa-spss-lib</artifactId>
			<exclusions>
				<exclusion>
					<artifactId>iaik_pki_module</artifactId>
					<groupId>iaik</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>MOA.id.server</groupId>
			<artifactId>moa-id-lib</artifactId>
		</dependency>
        <dependency>
            <groupId>eu.stork</groupId>
            <artifactId>oasis-dss-api</artifactId>
            <version>1.0.0-RELEASE</version>
        </dependency>

        <!-- transitive dependencies we don't want to include into the war -->
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_jce_full</artifactId>
			<!-- should be in the ext directory of the jre -->
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_ecc</artifactId>
			<!-- should be in the ext directory of the jre -->
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_Pkcs11Provider</artifactId>
			<!-- should be in the ext directory of the jre -->
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_Pkcs11Wrapper</artifactId>
			<!-- should be in the ext directory of the jre -->
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>xalan-bin-dist</groupId>
			<artifactId>xalan</artifactId>
			<!-- should be provided by the container or jre -->
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>xerces</groupId>
			<artifactId>xercesImpl</artifactId>
			<!-- should be provided by the container or jre -->
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>xalan-bin-dist</groupId>
			<artifactId>xml-apis</artifactId>
			<!-- should be provided by the container or jre -->
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>xalan-bin-dist</groupId>
			<artifactId>serializer</artifactId>
			<!-- should be provided by the container or jre -->
			<scope>provided</scope>
		</dependency>
	</dependencies>

</project>