<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>2.x</version>
    <name>MOA</name>

    <properties>
        <repositoryPath>${basedir}/repository</repositoryPath>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        
        <moa-commons-version>2.0.1</moa-commons-version>
				<moa-id-version>2.1.2</moa-id-version>
				<moa-id-proxy-version>2.0.0</moa-id-proxy-version>
        <moa-spss-version>2.0.3</moa-spss-version>
				<configtool-version>1.1.4</configtool-version>
				<demo-oa-version>2.0.2</demo-oa-version>
    </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>
            <repositories>
                <repository>
                    <id>local</id>
                    <name>local</name>
                    <url>file:${basedir}/../../../repository</url>
                </repository>
                <repository>
                    <id>hyberjaxb</id>
                    <url>http://repository.highsource.org/maven2/releases/</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                </repository>
                <repository>
                    <id>jboss</id>
                    <url>https://repository.jboss.org/nexus/content/repositories/central/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
            </repositories>
        </profile>
    </profiles>

    <build>
        <plugins>
<!--         		<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-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.6</source>
                    <target>1.6</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> 
                <!-- TODO Update Version 2.2-beta-1 for MOA-SPSS -->
                <configuration>
                    <finalName>moa</finalName>
                    <encoding>UTF-8</encoding>
                    <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>org.opensaml</groupId>
  				<artifactId>opensaml</artifactId>
  				<version>2.6.3</version>
  			</dependency>  		
			<dependency>
				<groupId>org.opensaml</groupId>
				<artifactId>xmltooling</artifactId>
				<version>1.4.3</version>
			</dependency>


            <dependency>
                <groupId>axis</groupId>
                <artifactId>axis</artifactId>
                <version>1.0_IAIK_1.2</version>                
                <scope>compile</scope>
            </dependency>
            <dependency>
               <groupId>org.apache.axis</groupId>
               <artifactId>axis-jaxrpc</artifactId>
               <version>1.4</version>
               <scope>compile</scope>
            </dependency>
            <dependency>
               <groupId>org.apache.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.1.6</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.17</version>
                <scope>compile</scope>
            </dependency>
						<dependency>
							<groupId>org.postgresql</groupId>
							<artifactId>postgresql</artifactId>
							<version>9.3-1102-jdbc41</version>
						</dependency>

            <dependency>
                <groupId>javax.mail</groupId>
                <artifactId>mail</artifactId>
                <version>1.4.7</version>
            </dependency>
            <dependency>
                <groupId>commons-fileupload</groupId>
                <artifactId>commons-fileupload</artifactId>
                <version>1.3.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>${moa-commons-version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>MOA.id.server</groupId>
                <artifactId>moa-id-lib</artifactId>
                <version>${moa-id-version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
            	<groupId>MOA.id.server</groupId>
            	<artifactId>moa-id-commons</artifactId>
            	<version>${moa-id-version}</version>
              <scope>compile</scope>
        		</dependency>            
            <dependency>
                <groupId>MOA.spss.server</groupId>
                <artifactId>moa-spss-lib</artifactId>
                <version>${moa-spss-version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>MOA</groupId>
                <artifactId>moa-common</artifactId>
                <version>${moa-commons-version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>MOA.spss.server</groupId>
                <artifactId>moa-spss-tools</artifactId>
                <version>${moa-spss-version}</version>
                <scope>test</scope>
             </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>3.8.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>1.2</version>
                <scope>compile</scope>
            </dependency>
            
            <dependency>
            	<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
				<version>2.4</version> 
				<scope>provide</scope>                
            </dependency>
             <dependency>
                <groupId>javax.activation</groupId>
                <artifactId>activation</artifactId>
                <version>1.1.1</version>	
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>commons-discovery</groupId>
                <artifactId>commons-discovery</artifactId>
                <version>0.5</version>	
                <scope>compile</scope>
            </dependency>
            <!-- IAIK libraries -->
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_jce_full</artifactId>
                <!-- <version>4.0_MOA</version>-->
                <version>5.2</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_moa</artifactId>
                <version>1.51</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>iaik.prod</groupId>
                <artifactId>iaik_cms</artifactId>
                <version>5.0</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>

		<dependency>
			<groupId>javax.xml.bind</groupId>
    		<artifactId>jaxb-api</artifactId>
    		<version>2.2.12</version>
		</dependency>
            
            <!--  TSL  -->
   <dependency>
			<groupId>iaik</groupId>
			<artifactId>iaik_tsl</artifactId>
			<version>1.1</version>
		</dependency>
		
<!-- 		<dependency>
			<groupId>iaik</groupId>
			<artifactId>iaik_util</artifactId>
			<version>0.23</version>
		</dependency>
		<dependency>
			<groupId>iaik</groupId>
			<artifactId>iaik_xsect_eval</artifactId>
			<version>1.1709142</version>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-impl</artifactId>
			<version>2.2.7</version>
		</dependency>
		<dependency>
			<groupId>org.xerial</groupId>
		  	<artifactId>sqlite-jdbc</artifactId>
  			<version>3.7.8-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>iaik</groupId>
		  	<artifactId>iaik_jsse</artifactId>
  			<version>4.4</version>
		</dependency> -->
		
            <dependency>
                <groupId>xerces</groupId>
                <artifactId>xercesImpl</artifactId>
                <version>2.11.0</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.11.0</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.2</version>
                <scope>compile</scope><!-- for XPathAPI, Javadoc,...-->
            </dependency>
            <dependency>
                <groupId>xalan-bin-dist</groupId>
                <artifactId>serializer</artifactId>
                <version>2.7.2</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>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </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>