<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>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>19.0</version>
		</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>
    	<version>0.1</version>
    </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>
			</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>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>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>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>  		

		<!-- 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>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>
            <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> -->
		

<!--         <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>

	</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>