<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.spss</groupId>
        <artifactId>moa-spss</artifactId>
        <version>2.0.x</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>MOA.spss.server</groupId>
    <artifactId>moa-spss-ws</artifactId>
    <packaging>war</packaging>
    <version>2.0.1</version>
    <name>MOA SP/SS WebService</name>

    <properties>
        <repositoryPath>${basedir}/../../../repository</repositoryPath>
    </properties>


    <repositories>
        <repository>
            <id>JBoss IAIK</id>
            <url>http://nexus.iaik.tugraz.at/nexus/content/repositories/nexus/</url>
            <!-- <releases><enabled>true</enabled></releases> -->
        </repository>
        <repository>
            <id>IAIK libs</id>
            <url>http://nexus.iaik.tugraz.at/nexus/content/repositories/iaik/</url>
            <!-- <releases><enabled>true</enabled></releases> -->
        </repository>
    </repositories>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.3</version>
                <!-- <version>2.0.2</version>-->
                <configuration>
                    <archive>
                        <manifest>
                            <addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                        <addMavenDescriptor>false</addMavenDescriptor>
                    </archive>
                    <warName>moa-spss</warName>
                    <webResources>
                        <resource>
                            <directory>${basedir}/resources/wsdl</directory>
                            <targetPath>resources/schemas</targetPath>
                            <includes>
                                <include>*.xsd</include>
                                <include>*.wsdl</include>
                            </includes>
                        </resource>
                        <resource>
                            <directory>${basedir}/../../handbook</directory>
                            <targetPath>WEB-INF</targetPath>
                            <includes>
                                <include>conf/**</include>
                            </includes>
                        </resource>
                    </webResources>
                </configuration>
            </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>
        	</plugins>
       </build>
    <dependencies>
        <dependency>
            <groupId>MOA.spss.server</groupId>
            <artifactId>moa-spss-lib</artifactId>
            <!--version>${pom.version}</version-->
        </dependency>
        <dependency>
            <groupId>MOA</groupId>
            <artifactId>moa-common</artifactId>
        </dependency>
        <dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_ixsil</artifactId>
		</dependency>
        <dependency>
			<groupId>iaik</groupId>
			<artifactId>iaik_tsl</artifactId>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
		</dependency>
		<dependency>
			<groupId>iaik</groupId>
			<artifactId>iaik_util</artifactId>
		</dependency>
		<dependency>
			<groupId>iaik</groupId>
			<artifactId>iaik_xsect_eval</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.xml.bind</groupId>
    		<artifactId>jaxb-api</artifactId>
  		</dependency>
		<dependency>
			<groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-impl</artifactId>
		</dependency>
		<dependency>
			<groupId>org.xerial</groupId>
		  	<artifactId>sqlite-jdbc</artifactId>
  		</dependency>
		<dependency>
			<groupId>iaik</groupId>
		  	<artifactId>iaik_jsse</artifactId>
  		</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>iaik.prod</groupId>
            <artifactId>iaik_Pkcs11Wrapper</artifactId>
            <classifier>win32</classifier>
            <type>dll</type>
            <!-- 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>