<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">
    <modelVersion>4.0.0</modelVersion>
    <groupId>MOA</groupId>
    <artifactId>MOA</artifactId>
    <packaging>pom</packaging>
    <version>1.5.2</version>
    <name>MOA</name>

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

    <profiles>
        <profile>
            <id>default</id>
            <activation>
                <activeByDefault>true</activeByDefault>
                <property>
                    <name>default</name>
                </property>
            </activation>
            <modules>
                <module>common</module>
                <module>spss</module>
                <module>id</module>
            </modules>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <verbose>false</verbose>
                    <fork>true</fork>
                    <executable>${env.BUILD_EXECUTEABLE}</executable>
                    <compilerVersion>${env.BUILD_VERSION}</compilerVersion>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <inherited>false</inherited>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-1</version>
                <configuration>
                    <finalName>moa</finalName>
                    <descriptors>
                        <descriptor>id/assembly-auth.xml</descriptor>
                        <descriptor>id/assembly-proxy.xml</descriptor>
                        <descriptor>spss/assembly.xml</descriptor>
                        <descriptor>spss/assembly-lib.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>
        </plugins>

    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <excludePackageNames>test.*</excludePackageNames>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <dependencyManagement>
        <dependencies>

            <dependency>
                <groupId>axis</groupId>
                <artifactId>axis</artifactId>
                <version>1.0_IAIK</version>                
                <scope>compile</scope>
            </dependency>
            <dependency>
               <groupId>axis</groupId>
               <artifactId>axis-jaxrpc</artifactId>
               <version>1.4</version>
               <scope>compile</scope>
            </dependency>
            <dependency>
               <groupId>axis</groupId>
               <artifactId>axis-saaj</artifactId>
               <version>1.4</version>
               <scope>compile</scope>
            </dependency>
            <dependency>
               <groupId>axis</groupId>
               <artifactId>axis-wsdl4j</artifactId>
               <version>1.5.1</version>
               <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>jaxen</groupId>
                <artifactId>jaxen</artifactId>
                <version>1.0-FCS</version>
            </dependency>
            <dependency>
                <groupId>saxpath</groupId>
                <artifactId>saxpath</artifactId>
                <version>1.0-FCS</version>
                <scope>compile</scope>
            </dependency>

            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.14</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>postgresql</groupId>
                <artifactId>postgresql</artifactId>
                <version>7.2</version>
                <scope>runtime</scope>
            </dependency>

            <dependency>
                <groupId>javax.mail</groupId>
                <artifactId>mail</artifactId>
                <version>1.4</version>
            </dependency>
            <dependency>
                <groupId>commons-fileupload</groupId>
                <artifactId>commons-fileupload</artifactId>
                <version>1.1.1</version>
            </dependency>
            <dependency>
               <groupId>commons-httpclient</groupId>
               <artifactId>commons-httpclient</artifactId>
               <version>3.1</version>
            </dependency>
            <dependency>
                <groupId>dav4j</groupId>
                <artifactId>dav4j</artifactId>
                <version>0.1</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>httpsclient</groupId>
                <artifactId>httpsclient</artifactId>
                <version>JSSE-1.0</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>regexp</groupId>
                <artifactId>regexp</artifactId>
                <version>1.3</version>
            </dependency>


            <dependency>
                <groupId>MOA</groupId>
                <artifactId>moa-common</artifactId>
                <version>1.5.2</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>MOA.id.server</groupId>
                <artifactId>moa-id-lib</artifactId>
                <version>1.5.2</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>MOA.spss.server</groupId>
                <artifactId>moa-spss-lib</artifactId>
                <version>1.5.2</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>MOA</groupId>
                <artifactId>moa-common</artifactId>
                <version>1.5.2</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>MOA.spss.server</groupId>
                <artifactId>moa-spss-tools</artifactId>
                <version>1.5</version>
                <scope>test</scope>
             </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>3.8.1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>1.0.4</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.4</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>javax.activation</groupId>
                <artifactId>activation</artifactId>
                <version>1.1</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>commons-discovery</groupId>
                <artifactId>commons-discovery</artifactId>
                <version>0.2</version>
                <scope>compile</scope>
            </dependency>
            <!-- IAIK libraries -->
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_jce_full</artifactId>
                <version>4.0_MOA</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_moa</artifactId>
                <version>1.32</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_cms</artifactId>
                <version>4.1_MOA</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_ecc</artifactId>
                <version>2.19</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_ixsil</artifactId>
                <version>1.2.2.5</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_X509TrustManager</artifactId>
                <version>0.3</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Provider</artifactId>
                <version>1.2.4</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Wrapper</artifactId>
                <version>1.2.17</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Wrapper</artifactId>
                <version>1.2.17</version>
                <classifier>win32</classifier>
                <type>dll</type>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Wrapper</artifactId>
                <version>1.2.17</version>
                <classifier>linux</classifier>
                <type>so</type>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Wrapper</artifactId>
                <version>1.2.17</version>
                <classifier>linux_x64</classifier>
                <type>so</type>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Wrapper</artifactId>
                <version>1.2.17</version>
                <classifier>solaris_sparc</classifier>
                <type>so</type>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Wrapper</artifactId>
                <version>1.2.17</version>
                <classifier>solaris_sparcv9</classifier>
                <type>so</type>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_Pkcs11Wrapper</artifactId>
                <version>1.2.17</version>
                 <classifier>win64</classifier>
                <type>dll</type>
                <scope>runtime</scope>
            </dependency>
            
            <!--  TSL  -->
        <dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_tsl</artifactId>
			<version>0.0.2-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_util</artifactId>
			<version>0.23</version>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_xsect</artifactId>
			<version>1.1709142</version>
		</dependency>
		<dependency>
			<groupId>javax.xml.bind</groupId>
    		<artifactId>jaxb-api</artifactId>
    		<version>2.2.6</version>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-impl</artifactId>
			<version>2.2.5</version>
		</dependency>
		<dependency>
			<groupId>org.xerial</groupId>
		  	<artifactId>sqlite-jdbc</artifactId>
  			<version>3.7.8-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
		  	<artifactId>iaik_jsse</artifactId>
  			<version>4.4</version>
		</dependency>
		
            <dependency>
                <groupId>xerces</groupId>
                <artifactId>xercesImpl</artifactId>
                <version>2.7.1</version>
                <scope>compile</scope>
            </dependency>
            <!-- The xmlParserAPIs.jar of the official xalan distribution
                 and the one in the central repository differ. So, we
                 are going to include the official one in our own
                 distribution to prevent from problems with different
                 versions in the endorsed directory of the servlet container
                 or jre endorsed directory. -->
            <dependency>
                <groupId>xalan-bin-dist</groupId>
                <artifactId>xml-apis</artifactId>
                <version>2.7.0</version><!-- xalan version -->
                <scope>runtime</scope>
            </dependency>
            <!-- The xalan.jar of the official xalan distribution
                 and the one in the central repository differ. So, we
                 are going to include the official one in our own
                 distribution to prevent from problems with different
                 versions in the endorsed directory of the servlet container
                 or jre endorsed directory. -->
            <dependency>
                <groupId>xalan-bin-dist</groupId>
                <artifactId>xalan</artifactId>
                <version>2.7.0</version>
                <scope>compile</scope><!-- for XPathAPI, Javadoc,...-->
            </dependency>
            <dependency>
                <groupId>xalan-bin-dist</groupId>
                <artifactId>serializer</artifactId>
                <version>2.7.0</version><!-- xalan version -->
                <scope>runtime</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>iaik.prod</groupId>
            <artifactId>iaik_Pkcs11Wrapper</artifactId>
            <classifier>win32</classifier>
            <type>dll</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>iaik.prod</groupId>
            <artifactId>iaik_Pkcs11Wrapper</artifactId>
            <classifier>linux</classifier>
            <type>so</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>iaik.prod</groupId>
            <artifactId>iaik_Pkcs11Wrapper</artifactId>
            <classifier>linux_x64</classifier>
            <type>so</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>iaik.prod</groupId>
            <artifactId>iaik_Pkcs11Wrapper</artifactId>
            <classifier>solaris_sparc</classifier>
            <type>so</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>iaik.prod</groupId>
            <artifactId>iaik_Pkcs11Wrapper</artifactId>
            <classifier>solaris_sparcv9</classifier>
            <type>so</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>iaik.prod</groupId>
            <artifactId>iaik_Pkcs11Wrapper</artifactId>
            <classifier>win64</classifier>
            <type>dll</type>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>MOA</id>
            <name>MOA Dependencies</name>
            <!--releases>
                <enabled>false</enabled>
                </releases-->
            <layout>default</layout>
            <url>file://${repositoryPath}</url>
        </repository>
    </repositories>
</project>