<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>3.x</version>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<groupId>MOA.id.server</groupId>
	<artifactId>moa-id-lib</artifactId>
	<version>${moa-id-version}</version>
	<packaging>jar</packaging>
	<name>MOA ID API</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>

	<dependencies>
		<!-- TestNG -->
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>6.1.1</version>
			<scope>test</scope>
		</dependency>
<!-- 	<dependency>
		<groupId>eu.stork</groupId>
		<artifactId>oasis-dss-api</artifactId>
		<version>1.0.0-RELEASE</version>
		<exclusions>
			<exclusion>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-io</artifactId>
			</exclusion>
		</exclusions>
	</dependency> -->
    
    <dependency>
    	<groupId>at.gv.egiz.components</groupId>
    	<artifactId>eventlog-api</artifactId>
    	<version>0.4</version>
    </dependency>
    
    <dependency>
    	<groupId>at.gv.egiz.components</groupId>
    	<artifactId>eventlog-slf4j</artifactId>
    	<version>0.4</version>
    </dependency>
    
    <dependency>
    		<groupId>MOA.id.server</groupId>
    		<artifactId>moa-id-commons</artifactId>
<!--     		<exclusions>
    			<exclusion>
    				<artifactId>hyperjaxb3-ejb-runtime</artifactId>
    				<groupId>org.jvnet.hyperjaxb3</groupId>
    			</exclusion>
    		</exclusions> -->
    </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>${hibernate.version}</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-c3p0</artifactId>
            <version>${hibernate.version}</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>${hibernate.version}</version>
        </dependency>

    
<!--         <dependency>
            <groupId>eu.stork</groupId>
            <artifactId>Commons</artifactId>
            <version>1.4.0</version>
        </dependency> -->
<!--         <dependency>
            <groupId>eu.stork</groupId>
            <artifactId>SamlEngine</artifactId>
            <version>1.5.1</version>
        </dependency> -->

		<dependency>
			<groupId>MOA</groupId>
			<artifactId>moa-common</artifactId>
			<type>jar</type>
		</dependency>

		<dependency>
			<groupId>MOA</groupId>
			<artifactId>moa-common</artifactId>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>MOA.spss.server</groupId>
			<artifactId>moa-spss-lib</artifactId>
			<exclusions>
				<exclusion>
					<artifactId>iaik_pki_module</artifactId>
					<groupId>iaik</groupId>
				</exclusion>
				<exclusion>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
				</exclusion>
				<exclusion>
					<artifactId>axis-wsdl4j</artifactId>
					<groupId>axis</groupId>
				</exclusion>
				<exclusion>
					<artifactId>jaxb-impl</artifactId>
					<groupId>com.sun.xml.bind</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>axis</groupId>
			<artifactId>axis</artifactId>
		</dependency>
		

		   <dependency>
            <groupId>at.gv.util</groupId>
            <artifactId>egovutils</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
									<groupId>xalan</groupId>
									<artifactId>*</artifactId>
									</exclusion>
                <exclusion>
                	<artifactId>bcprov-jdk16</artifactId>
                	<groupId>bouncycastle</groupId>
                </exclusion>
                <exclusion>
                	<artifactId>jaxb-impl</artifactId>
                	<groupId>com.sun.xml.bind</groupId>
                </exclusion>
                <exclusion>
                	<artifactId>jaxb-core</artifactId>
                	<groupId>com.sun.xml.bind</groupId>
                </exclusion>
            </exclusions>
        </dependency>
				
		  <dependency>
        	<groupId>org.apache.cxf</groupId>
        	<artifactId>cxf-rt-frontend-jaxws</artifactId>
    	</dependency>
    	<dependency>
        	<groupId>org.apache.cxf</groupId>
        	<artifactId>cxf-rt-transports-http</artifactId>
    	</dependency>
		
		
		<dependency>
			<groupId>javax.xml.bind</groupId>
    		<artifactId>jaxb-api</artifactId>
		</dependency>
		
		<!-- Required for MOA-SPSS API access -->
		<dependency>
			<groupId>com.sun.xml.rpc</groupId>
			<artifactId>jaxrpc-impl</artifactId>
			<version>1.1.3_01</version>
		</dependency>
		
		
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
		</dependency>
		<!--
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>
		-->
		
        <dependency>
            <groupId>xalan-bin-dist</groupId>
            <artifactId>xalan</artifactId>
            <!-- should be provided by the container or jre -->
            <scope>provided</scope>
            <exclusions>
            	<exclusion>
            		<artifactId>serializer</artifactId>
            		<groupId>xalan</groupId>
            	</exclusion>
            </exclusions>
        </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>
        <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>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.7</version>
        </dependency> -->
<!--         <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.7.6</version>
        </dependency> -->
<!--         <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <version>1.7.6</version>
        </dependency> -->
<!--          <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>log4j-over-slf4j</artifactId>
            <version>1.7.6</version>
        </dependency> -->
<!--         <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jul-to-slf4j</artifactId>
            <version>1.7.6</version>
        </dependency> -->

		<dependency>
			<groupId>org.easymock</groupId>
			<artifactId>easymock</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.unitils</groupId>
			<artifactId>unitils-core</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>MOA</groupId>
			<artifactId>moa-common</artifactId>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
 		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
		</dependency>
<!--		<dependency>
			<groupId>commons-discovery</groupId>
			<artifactId>commons-discovery</artifactId>
		</dependency> -->
 		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
    </dependency> 
		<dependency>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
		</dependency>
		<dependency>
			<groupId>dav4j</groupId>
			<artifactId>dav4j</artifactId>
		</dependency>
		<dependency>
			<groupId>httpsclient</groupId>
			<artifactId>httpsclient</artifactId>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_moa</artifactId>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_ixsil</artifactId>
		</dependency>
		<dependency>
			<groupId>iaik.prod</groupId>
			<artifactId>iaik_X509TrustManager</artifactId>
		</dependency>
		<!-- <dependency> <groupId>iaik</groupId> <artifactId>moa</artifactId> 
			<version>1.28</version> </dependency> -->
<!-- 		<dependency>
			<groupId>edu.internet2.middleware</groupId>
			<artifactId>shibboleth-common</artifactId>
			<version>1.4.0</version>
			<exclusions>
				<exclusion>
					<artifactId>logback-classic</artifactId>
					<groupId>ch.qos.logback</groupId>
				</exclusion>
			</exclusions>
		</dependency> -->
		
	<dependency>
  		<groupId>org.opensaml</groupId>
  		<artifactId>opensaml</artifactId>
  		<exclusions>
				<exclusion>
					<groupId>org.slf4j</groupId>
					<artifactId>log4j-over-slf4j</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.xerces</groupId>
					<artifactId>*</artifactId>
				</exclusion>
				<exclusion>
				<groupId>xalan</groupId>
				<artifactId>*</artifactId>
			</exclusion>
			</exclusions>
  </dependency>  		
	<dependency>
		<groupId>org.opensaml</groupId>
		<artifactId>xmltooling</artifactId>
		<exclusions>
			<exclusion>
				<groupId>org.slf4j</groupId>
				<artifactId>log4j-over-slf4j</artifactId>
			</exclusion>
			<exclusion>
				<groupId>org.slf4j</groupId>
				<artifactId>log4j-over-slf4j</artifactId>
			</exclusion>
			<exclusion>
					<groupId>org.apache.xerces</groupId>
					<artifactId>*</artifactId>
			</exclusion>
			<exclusion>
				<groupId>xalan</groupId>
				<artifactId>*</artifactId>
			</exclusion>
			<exclusion>
				<artifactId>bcprov-jdk15on</artifactId>
				<groupId>org.bouncycastle</groupId>
			</exclusion>
		</exclusions>
	</dependency>  		

<!-- 	<dependency>
			<groupId>regexp</groupId>
			<artifactId>regexp</artifactId>
		</dependency> -->
		
		<!-- <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> 
			</dependency> -->
		<!-- <dependency> <groupId>at.gv.egovernment.moa.id</groupId> <artifactId>mandate-validate</artifactId> 
			<version>1.1</version> </dependency> -->
        <!--
        <dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
			<version>2.6</version>
		</dependency>
        -->



		<!-- JSON JWT implementation -->
		<dependency>
			<groupId>com.googlecode.jsontoken</groupId>
			<artifactId>jsontoken</artifactId>
			<version>1.1</version>
			<exclusions>
				<exclusion>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
				</exclusion>
				<exclusion>
					<artifactId>google-collections</artifactId>
					<groupId>com.google.collections</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>18.0</version>
		</dependency>

		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.10</version>
		</dependency>

		<!-- Google OAuth Client -->
		<dependency>
			<groupId>com.google.http-client</groupId>
			<artifactId>google-http-client-jackson2</artifactId>
			<version>1.19.0</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.google.oauth-client</groupId>
			<artifactId>google-oauth-client-jetty</artifactId>
			<version>1.19.0</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>servlet-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

<!-- 		<dependency>
			<groupId>eu.stork</groupId>
			<artifactId>DocumentService</artifactId>
			<version>0.0.1-SNAPSHOT</version>
			<classifier>classes</classifier>
			<exclusions>
				<exclusion>
					<artifactId>axis</artifactId>
					<groupId>org.apache.axis</groupId>
				</exclusion>
				<exclusion>
					<artifactId>bcprov-jdk16</artifactId>
					<groupId>org.bouncycastle</groupId>
				</exclusion>
				<exclusion>
					<artifactId>jaxws-tools</artifactId>
					<groupId>com.sun.xml.ws</groupId>
				</exclusion>
			</exclusions>
		</dependency> -->

		<!-- the core, which includes Streaming API, shared low-level abstractions (but NOT data-binding) -->
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
		</dependency>
		<!-- databinding; ObjectMapper, JsonNode and related classes are here -->
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
		</dependency>


		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-annotations</artifactId>
		</dependency>

		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- testing -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<version>1.4.178</version>
			<scope>runtime</scope>
		</dependency>

		<!-- tools -->
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-collections4</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
		</dependency>

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>${org.apache.commons.lang3.version}</version>
        </dependency>

<!-- 		<dependency>
			<groupId>org.jvnet.jaxb2_commons</groupId>
			<artifactId>runtime</artifactId>
			<version>0.4.1.5</version>
		</dependency> -->
		
<!-- 		<dependency>
			<groupId>org.jvnet.jaxb2_commons</groupId>
			<artifactId>jaxb2-basics-runtime</artifactId>
			<version>0.9.4</version>
		</dependency> -->
		


		<!-- spring -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-core</artifactId>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-expression</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-webmvc</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<scope>test</scope>
		</dependency>

	</dependencies>

	<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-dependency-plugin</artifactId>
	        <version>2.8</version>
	        <executions>
	        </executions>
	      </plugin>


						<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.9.1</version>
				<configuration>
					<charset>UTF-8</charset>
					<docencoding>UTF-8</docencoding>
					<quiet>true</quiet>
					<author>false</author>
					<version>false</version>
					<use>true</use>
				  <failOnError>false</failOnError>
					<excludePackageNames>at.gv.egovernment.moa.spss.server.*;at.gv.egovernment.moa.spss.api.impl.*;at.gv.egovernment.moa.spss.impl.*</excludePackageNames>
					<tags>
						<tag>
							<name>pre</name>
							<placement>a</placement>
							<head>Preconditions:</head>
						</tag>
						<tag>
							<name>post</name>
							<placement>a</placement>
							<head>Postconditions:</head>
						</tag>
					</tags>
					<links>
						<link>http://docs.oracle.com/javase/7/docs/api/</link>
						<link>http://logging.apache.org/log4j/docs/api/</link>
					</links>
					<target>1.7</target>
				</configuration>
				<executions>
					<execution>
						<id>generate-javadoc</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
<!-- 				<configuration>
				<skip>true</skip>
				<skipTests>true</skipTests>
					<archive>
						<addMavenDescriptor>false</addMavenDescriptor>
					</archive>
				</configuration> -->
				<executions>
					<execution>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<!-- enable co-existence of testng and junit -->
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>${surefire.version}</version>
				<configuration>
					<threadCount>1</threadCount>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>org.apache.maven.surefire</groupId>
						<artifactId>surefire-junit47</artifactId>
						<version>${surefire.version}</version>
					</dependency>
					<dependency>
						<groupId>org.apache.maven.surefire</groupId>
						<artifactId>surefire-testng</artifactId>
						<version>${surefire.version}</version>
					</dependency>
				</dependencies>
			</plugin>

		</plugins>

	</build>

</project>