<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>MOA.id</groupId>
		<artifactId>moa-id</artifactId>
		<version>4.1.4-RC1</version>
	</parent>

	<groupId>MOA.id.server</groupId>
	<artifactId>moa-id-lib</artifactId>
	<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://apps.egiz.gv.at/shibboleth_nexus/</url>
		</repository>
	</repositories>

	<dependencies>
		<!-- TestNG -->
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>6.9.10</version>
			<scope>test</scope>
		</dependency>
		
 		<dependency>
    	<groupId>javax.transaction</groupId>
    	<artifactId>jta</artifactId>
	    <version>1.1</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>javax.annotation</groupId>
			<artifactId>javax.annotation-api</artifactId>
			<version>1.3.2</version>
		</dependency>

 		<dependency>
    	<groupId>javax.transaction</groupId>
    	<artifactId>javax.transaction-api</artifactId>
    	<version>1.2</version>
    	<scope>test</scope>
		</dependency>
		    
    	<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
		</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>at.gv.egiz.components</groupId>
    	<artifactId>egiz-spring-api</artifactId>
    </dependency>
    
    <dependency>
    	<groupId>MOA.id.server</groupId>
  		<artifactId>moa-id-frontend-resources</artifactId>
    </dependency>
    <dependency>
    		<groupId>MOA.id.server</groupId>
    		<artifactId>moa-id-commons</artifactId>
    </dependency>
    
    <dependency>
    		<groupId>MOA.id.server</groupId>
    		<artifactId>moa-id-commons</artifactId>
    		<type>test-jar</type>
				<scope>test</scope>
    </dependency>

<!--         <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>${hibernate.version}</version>
            <exclusions>
            	<exclusion>
            		<artifactId>xml-apis</artifactId>
            		<groupId>xml-apis</groupId>
            	</exclusion>
            </exclusions>
        </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>MOA.id</groupId>
  			<artifactId>moa-spss-container</artifactId>
  			<exclusions>
					<exclusion>
						<artifactId>iaik_pki_module</artifactId>
						<groupId>iaik</groupId>
					</exclusion>
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
					<exclusion>
						<artifactId>axis-wsdl4j</artifactId>
						<groupId>axis</groupId>
					</exclusion>
				</exclusions>
  			<type>pom</type>
			</dependency>
  
  		<dependency>
				<groupId>jakarta-regexp</groupId>
				<artifactId>jakarta-regexp</artifactId>
				<version>1.4</version>
			</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>
                <exclusion>
                	<artifactId>xml-apis</artifactId>
                	<groupId>xml-apis</groupId>
                </exclusion>
            </exclusions>
        </dependency>
				
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>
				
		<dependency>				
			<groupId>javax.xml.ws</groupId>
    		<artifactId>jaxws-api</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.jws</groupId>
    		<artifactId>javax.jws-api</artifactId>
		</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>xalan-bin-dist</groupId>
			<artifactId>xml-apis</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>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>junit</groupId>
			<artifactId>junit</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>org.apache.commons</groupId>
    		<artifactId>commons-text</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>at.gv.egiz.eaaf</groupId>
  			<artifactId>eaaf_module_pvp2_idp</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>at.gv.egiz.eaaf</groupId>
  			<artifactId>eaaf_module_pvp2_sp</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>at.gv.egiz.eaaf</groupId>
  			<artifactId>eaaf-core</artifactId>
  			<type>test-jar</type>
  			<classifier>tests</classifier>
  			<version>1.0.0</version>
  			<scope>test</scope>  
		</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>org.apache.santuario</groupId>
	    <artifactId>xmlsec</artifactId>
	</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>iaik.prod</groupId>
			<artifactId>iaik_ixsil</artifactId>
			<version>1.2.2.5</version>
			<scope>test</scope>
		</dependency> 

		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<version>1.4.191</version>
			<scope>test</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>
            </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> -->
		

<!--         <dependency>
            <groupId>eu.stork</groupId>
            <artifactId>SamlEngine</artifactId>
            <version>1.5.1</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>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-tx</artifactId>
			<version>${org.springframework.version}</version>
		</dependency>
	
	
		<!-- Redis -->	
 		<dependency>
	        <groupId>org.springframework.data</groupId>
	        <artifactId>spring-data-redis</artifactId>
	    </dependency>
	
	    <dependency>
	    	<groupId>org.apache.commons</groupId>
	    	<artifactId>commons-pool2</artifactId>
	    	<version>2.8.1</version>
	    </dependency>
	    <dependency>
	    	<groupId>redis.clients</groupId>
	    	<artifactId>jedis</artifactId>
	    	<!-- version>3.0.1</version -->
	    	<version>3.3.0</version>
	    </dependency>
	
<!-- 	    <dependency>
	    	<groupId>org.codehaus.jackson</groupId>
	    	<artifactId>jackson-core-asl</artifactId>
	    	<version>1.9.13</version>
	    </dependency>
	    <dependency>
	    	<groupId>org.codehaus.jackson</groupId>
	    	<artifactId>jackson-mapper-asl</artifactId>
	    	<version>1.9.13</version>
	    </dependency> -->
	    
	    <dependency>
    		<groupId>com.fasterxml.jackson.core</groupId>
    		<artifactId>jackson-core</artifactId>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>java8</id>
			<activation>
				<jdk>[1.7,1.8]</jdk>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>3.0.1</version>
						<dependencies>
							<dependency>
		    					<groupId>javax.annotation</groupId>
		    					<artifactId>javax.annotation-api</artifactId>
							    <version>1.3.1</version>
							    <scope>compile</scope>
							</dependency>
						</dependencies>
						<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.*;at.gv.egovernment.moa.id.client.*</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>
						<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>
						</dependencies>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>java9</id>
			<activation>
				<jdk>[1.9,1.99)</jdk>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>3.0.1</version>
						<dependencies>
							<dependency>
		    					<groupId>javax.annotation</groupId>
		    					<artifactId>javax.annotation-api</artifactId>
							    <version>1.3.1</version>
							    <scope>compile</scope>
							</dependency>
						</dependencies>
						<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.*;at.gv.egovernment.moa.id.client.*</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>
								<configuration>
									<!-- <additionalparam>-Xdoclint:none ${additionalparam}</additionalparam> -->
		                			<additionalparam>--add-modules ALL-SYSTEM ${additionalparam}</additionalparam>
		                			<additionalOptions>--add-modules ALL-SYSTEM</additionalOptions>
		            			</configuration>	
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>${surefire.version}</version>
						<configuration>
							<threadCount>1</threadCount>
							<argLine>--add-modules java.xml.bind</argLine>
						</configuration>
						<dependencies>
							<dependency>
								<groupId>org.apache.maven.surefire</groupId>
								<artifactId>surefire-junit47</artifactId>
								<version>${surefire.version}</version>
							</dependency>
						</dependencies>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<build>
		<plugins>     		        		
			<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-compiler-plugin</artifactId>
                <version>3.6.1</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
			
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>

	</build>

</project>